#include <bits/stdc++.h>
using namespace std;
int main(){
    //write code  here
    int N;
    cin >> N;
//    vector<string>S(N);
    string S;
    vector<string>_S;
    int num=1;
    for (int i = 0; i < N; ++i) {
        cin >> S;
        if (i==0) _S.emplace_back(S);
        else{
            bool a = true;
            for (int j = 0; j <_S.size(); ++j) {
                if(S == _S.at(j)){
                    a = false;
                    break;
                }
            }
            if (a) _S.push_back(S);
        }
    }

    cout << _S.size() << endl;



    return 0;
}