/************************************
/ AUTHOR : YATHARTH GOSWAMI         /  
/ ALIAS : hacker_yg                 /
/ INSTITUTE : IIT Kanpur            /
************************************/
//          TEMPLATE                //

#include <bits/stdc++.h>

#define ll long long
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define F first
#define S second

using namespace std;

int main(){
    int n;
    scanf ("%d\n", &n);
    map <string, int> m;
    int ans = 0;
    for (int i = 0; i < n; i++){
        string s;
        getline(cin, s);
        if (!m[s]) ans++;
        m[s]++;
    }
    cout << ans << endl;
    return 0;
}


