#include <bits/stdc++.h>

#define rep(i, n) for(int i=0; i < n; i++)
#define reps(i, n) for(int i=1; i <= n; i++)
#define INF 1e9
#define ALL(v) v.begin(), v.end()

using namespace std;
using ll=long long;
const double PI=3.14159265358979323846;



int main() {
    int n;
    cin >> n;
    string S[n];
    int ch;
    int a;
    a = 0;
    ch = 1;
    string aa[n];

    rep(i,n){
        cin >> S[i];
        rep(j,a){
            if(S[i] == aa[j]){
                ch = 0;
                break;
            }
        }
        if(ch == 1){
            aa[a] = S[i];
            a = a+1;
        }

    }

    cout << a;

    

}


/*
    int a[N][2];

    rep(i,N){
        rep(j,2){
            cin >> a[i][j];
        }
    }

    rep(i,N-1){
        for(int j=i+1;j<N;j++){
            int dlx = a[i][0] - a[j][1];
            int dly = a[j][0] - a[j][1];
            rep[]
        }
    }
*/