#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
    ll t;cin>>t;
    map<string,ll>mp;
    ll cnt=0;
    while(t--){
        string s;cin>>s;
        if(mp[s]==0){cnt++;mp[s]++;}
    }
    cout<<cnt<<endl;
}
