#include<iostream>
#include<vector>
#include<string>
#include <algorithm>
using namespace std;

int main(void){
    int n;
    cin >> n;
    vector<string> a;
    for(int i=0;i<=n-1;i++){
        string aa;
        cin >> aa;
        for(int i=0;i<a.size();i++){
            if(a[i] == aa){
                goto aaa;
            }
        }
        a.push_back(aa);
        aaa:;
    }
    cout << a.size() << endl;
}