#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  vector<string> s;
  string si;
  cin >> si;
  s.push_back(si);
  for(int i = 1; i < n; i++){
    
    cin >> si;
    bool first = true;
    for(int j = 0; j < s.size(); j++){
      if(si == s[j]) first = false;
    }
    if(first) s.push_back(si);
  }
  cout << s.size() << endl;
}
  