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

int main (){
  int N;
  cin>>N;
  map<string, int> seqLen;
  rep(i,N){
    string S;
    cin>>S;
    seqLen[S] = 1;
  }
    cout << seqLen.size() <<endl;
}
