#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long long N, count=0;
  cin >> N;
  map<string, int> p;
  
  for(int i=0; i<N; i++){
    string s;
    cin >> s;
    if(p.count(s)) continue;
    else p[s] = 1;
  }
  for(auto x : p){
    count++;
  }
  cout << count << endl; 
}