#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < n; i++)
#define All(V) V.begin(), V.end()
typedef long long int ll;
typedef pair<int, int> P;
const ll MOD = 1e9+7, INF = 1e9;

int main()
{
  int n; cin >> n;
  set<string> s;
  rep(i, n){
    string t; cin >> t;
    s.insert(t);
  }
  cout << s.size() << endl;
  system("pause");
}