#include <iostream>
using namespace std;

int main(){
  long long n;
  cin >> n;
  string s[n];
  string ans[n];
  for(int i=0;i<n;i++){
    cin >> s[i];
    //cout << s[i] <<endl;
  }
  long long count=0;
  for(int i=0;i<n;i++){
    int x=0;
    for(int j=0;j<count;j++){
      if(s[i]==ans[j]){
        x=1;
      }
    }
    if(x==0&&s[i]!=""){
      ans[count]=s[i];
      count+=1;
    }
  }
  //cout << ans[0] <<endl;
  cout << count << endl;
}