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

// GCD, LCM
ll gcd(ll a, ll b) { return b?gcd(b,a%b):a;}
ll lcm(ll a, ll b) { return a/gcd(a,b)*b;}

int main()
{
    string S[200010]={},B[200010]={};
    int N,ans=0;
    cin>>N;

    for(int i=0;i<N;i++){
        cin>>S[i];

        int f=0;
        for(int j=1;j<=ans;j++){
            if(B[j]==S[i]){
                f=1;
                break;
            }
        }
        if(f==0){
            ans++;
            B[ans]=S[i];
        }
    }

    cout<< ans <<endl;

    return 0;
}