#include<cstdio>
#include<string>
#include<iostream>
#include<set>
using namespace std;

set<string> gift;

int main(){
    int n;
    scanf("%d", &n);

    for(int i = 0; i < n; i++){
        string s;
        cin >> s;
        gift.insert(s);
    }

    int ans = gift.size();

    cout << ans << endl;

    return 0;
}