#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  vector<string> S(N);
  map<string,int> c;
  for(int i=0;i<N;i++){
    cin >> S.at(i);
    if(c.count(S.at(i)))
      c[S.at(i)]++;
      else
        c[S.at(i)]=1;
  }
    cout << c.size() << endl; 
}
