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

int main() {
    int n;
    cin >> n;
    vector<string> data(n);
    for (int i = 0; i < n; i++) {
        cin >> data.at(i);
    }
    sort(data.begin(), data.end());

    vector<string> vec;
    vec.push_back(data.at(0));
    for (int i = 0; i < n - 1; i++) {
        if (data.at(i) != data.at(i + 1)) {
            vec.push_back(data.at(i + 1));
        }
    }
    cout << vec.size() << endl;
}
