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

int main() {
    int N, P, j;
    string A;
    cin >> N;
    map<string, int> S;
    for (int i = 0; i < N; i++){
        cin >> A;
        S[A]++;
    }
    cout << S.size() << endl;
}