#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    cin >> n;
    set<string> counter;
    for (int i = 0; i < n; i++) {
        string s;
        cin >> s;
        counter.insert(s);
    }
    cout << counter.size() << endl;
}