#include<bits/stdc++.h>
using namespace std;
#define l long
#define ll long long
#define nitro ios_base::sync_with_stdio(false);cin.tie(0);
#define vi vector<int>
#define pub push_back
#define puf push_front
#define pob pop_back
#define pof pop_front
#define PI 3.141592653589793238
#define endl '\n'
int main()
{
    nitro
    l int n;cin>>n;
    set<string>s;
    string st;
    for(l int i=0;i<n;i++)
    {
        cin>>st;
        s.insert(st);
    } cout<<s.size();
    return 0;
}



