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


int main() {
  int n;
  cin >> n;


  map<string,int>memo;
  rep(i,n){
    string s;
    cin>>s;
    memo[s]++;
  }
  cout<<memo.size()<<endl;
  
  
}





