#include<bits/stdc++.h>
using namespace std;
map<string,int>mp;

int main(){
	int t;
	cin >> t;
	int cnt=0;
	while(t--){
		string inp;
		cin >> inp;
		if(mp[inp]==0) {
			mp.insert(pair<string,int>(inp,1));
			mp[inp]=1;
			cnt++;
			//cout << mp["apple"] << "\n";
		}
	}
	cout << cnt << "\n";
}