#include <bits/stdc++.h>

#define ll long long
#define mk make_pair
#define pb push_back


using namespace std;


int main(){
   
   ios_base::sync_with_stdio(0);
   cin.tie(0);
   cout.tie(0);

   int N; cin >> N;
   int types = 0;
   set<string> kinds;
   while(N--){
      string s; cin >> s;
      kinds.insert(s);
   }
   
   cout << kinds.size();
   
   return 0;
}
