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

int main() {
  int N, count = 0, j;
  string Si;
  vector<string> list;
  
  cin >> N;
  for(int i = 0; i < N; i++){
    cin >> Si;
    for(j = 0; j < count; j++){
    	if(list[j] == Si)break;
    }
    if(j == count){
      count++;
      list.push_back(Si);
    }
      
  }
  cout << count << endl;
}
