#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;

int main() 
{ 
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int n, count = 0;
    cin >> n;
    map<string, int> m;
    while(n--) {
        string s;
        cin >> s;
        if(m[s] == 0) {
            count++;
            m[s]++;
        }
    }
    cout << count << "\n";
    return 0; 
}