#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <vector>
#include <queue>
#include <map>
using namespace std;
typedef long long LL;

map <string,LL> mp;
LL n,cnt = 0;
string s;

int main(){
	ios::sync_with_stdio(false);
	cin >> n;
	while(n --){
		cin >> s;
		if(mp.find(s) == mp.end()) cnt ++;
		mp[s] = 1;
	}
	cout << cnt << '\n';
	return 0;
}