#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
  int N;
  cin >> N;
  vector<string> S(N);
  rep(i, N){
    cin >> S.at(i);
  }
  int count, sum = 0;
  rep(i, N-1){
    count = 0;
    rep(k, N-i-1){
      if(S.at(i)==S.at(i+k+1)){
      count++;  
      break;  
      }
    }
  if(count == 0){
    sum++;
  }
  }
  cout << sum + 1 <<endl;
}