#include<iostream>
#include<iomanip>
#include<cmath>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#include<set>
#include<queue>
#include<stack>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define mp make_pair
const int inf=1e9+7;
const ll mod=1e9+7;

int main() {
    int N;
    cin>>N;
    set<string> ans;
    string tmp;
    for(int i=0;i<N;++i){
        cin>>tmp;
        ans.insert(tmp);
    }
    cout<<ans.size()<<endl;
}

