#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<string> vec(N);
  for(int i = 0; i < N; i++) {
    cin >> vec.at(i);
  }
  int count = 1;
  bool finished = true;
  if(N > 1) {
    for(int i = 1; i < N; i++) {
      for(int j = 0; j < i; j++) {
        if(vec.at(i) == vec.at(j)) {
          finished = false;
          break;
        }
      }
      if(finished)
        count++;
      else
        finished = true;
    }
  }
  cout << count << endl;
}