#include <bits/stdc++.h>
using namespace std;
int main() {
 int N;
  cin>>N;
   vector<string> vec(N);
   vector<string> lib;
  
  if (N==1) cout <<N;
 else{ 
   cin>>vec.at(0);
   lib.push_back(vec.at(0));
   for (int i = 1; i < N; i++){
     cin>>vec.at(i);
     bool AAA= false;
   for (int j = 0; j < lib.size(); j++){
     if(vec.at(i)==lib.at(j)){
       
       AAA=true;
       break;
     }
   }
     
     if(AAA) continue;
     else lib.push_back(vec.at(i));
   }
   cout <<lib.size();
          } 
}
