#include <bits/stdc++.h>

using namespace std;

int main(){
  int N;
  cin >> N;
  vector<string> S;
  int count = 0;
  string tmp;
  int i=0;
  int j=0;
  STEP:
  for(i=0;i<N;i++){
    cin >> tmp;
    for(j=0;j<count;j++){
      if(tmp==S.at(j)){
        goto STEP;
      }
    }
    S.push_back(tmp);
    count++;
  }
  cout << count << endl;
}