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

int main(){
  int n;
  string s;
  vector <string> v;
  cin >> n;
  rep(i, n) {
    cin >> s;
    auto itr = find(v.begin(), v.end(), s);
    if(itr != v.end()){
      //存在するならpushしない
    }else{
      v.push_back(s);
    }
  }
  cout << v.size() << endl;
}