#include <iostream>
#include <vector>
using namespace std;

int main() {
	int n;
	cin >> n;
	vector<string> s(n);
	for (int i = 0; i < n; i++) {
		cin >> s[i];
	}

	string kind[n];
	for (int i = 0; i < n; i++) {
		for (int j = i+1; j < n; j++) {
			if (s[i] == s[j]) {
				s.erase(s.begin() + j);
			}
		}
	}

	int ans = s.size();
	cout << ans << endl;
	return 0;
}
