#include <bits/stdc++.h>

using namespace std;

#define ll long long
#define ld long double

int main() {
	int N; cin >> N;
	map<string, int> mp;
	for (int i = 0; i < N; ++i) {
		string s; cin >> s;
		mp[s]++;
	}
	cout << mp.size() << endl;
	return 0;
}
