#include <bits/stdc++.h>
using namespace std;

int n;
string s;
set<string> NoDup_s;

void solve(){
  for(int i = 0; i < n; i++){
    cin >> s;
    NoDup_s.insert(s);
  }
}

int main()
{
  cin >> n;
  solve();
  cout << NoDup_s.size() << endl;
}