#include <bits/stdc++.h>
#include <random>
using namespace std;
#define M 1000000007
#define pb emplace_back
#define F first
#define S second
#define PI acosl(-1.0)
#define mp(a, b) make_pair(a, b)
#define eps 1e-9
#define all(vec) vec.begin(), vec.end()
#define FAST ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define int long long
template<class T> void chmax(T &a,T b) { if (a<b) a=b;}
template<class T> void chmin(T &a,T b) { if (a>b) a=b;}
const int N = 2e5 + 10;
const int INF = 1LL << 60;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int RANDOM_GEN = uniform_int_distribution<int>(0, 10000)(rng);
int t = 1;


void solve()
{
	int n;
	cin>>n;
	map<string, int> mp;
	int ans = 0;
	for(int i=0; i<n; i++){
		string s;
		cin>>s;
		if(mp[s] == 0) ans ++;
		mp[s]++;
	}
	cout << ans << '\n';
}


signed main()
{
    FAST
    int Tests = 1;
    //cin>>Tests;
    while(Tests--)
    {
		//cout<<"Case #"<<(t++)<<": ";  
        solve();
    }
    return 0;
}
