#include<bits/stdc++.h>
#define rep(i, n) for (int64_t i = 0; i < (int64_t)(n); i++)
using namespace std;
int main(){
  int n;cin>>n;
  map<string,int>mp;
  string s;
  rep(i,n){
    cin>>s;
    mp[s]++;
  }
  cout<<mp.size();
}
