#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define REP(i,n) for(ll i=0;i<n;++i)
#define FOR(i,j,n) for(ll i=j;i<n;++i)
#define MOD (1e9 + 7)

int main(void){
    ll n;
    cin >> n;
    set<string> S;
    string buf;
    REP(i,n){
        cin >> buf;
        S.insert(buf);
    }
    cout << S.size() << endl;
}