#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long long INF = 9999999999999999;
using ll = long long;
int main(){
  vector <string> a;
  int N;
  cin>>N;
  for(int i = 0;i<N;i++){
    string s;
    cin>>s;
    a.push_back(s);
  }
  sort(a.begin(),a.end());
  int ans = 1;
  for(int i = 0;i<N-1;i++){
    if(a[i] != a[i+1]){
      ans++;
    }
  }
  cout << ans << endl;
  return 0;
}