#include<iostream>
#include<set>
#include<vector>
#include<string>
using namespace std;

int main(){
  int N; cin >> N;
  vector<string> S(N);
  for (int i = 0; i < N; i++) cin >> S[i];
  
  set<string> Set;
  for (int i = 0; i < N; i++) Set.insert(S[i]);
  
  cout << Set.size() << endl;
}