#include<bits/stdc++.h>
#define ll long long
#define MP make_pair
#define PB push_back
#define F first
#define S second
#define fast ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL);
using namespace std;
int main()
{
	fast;
    //#ifndef ONLINE_JUDGE
    //freopen("input.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);
    //#endif
    ll int n;
    cin>>n;
    ll int i;
    map<string,ll int> mp;
    for(i=1;i<=n;i++)
    {
    	string s;
    	cin>>s;
    	mp[s]=-1;
    }
    cout<<mp.size()<<endl;
}