#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int compare(const void* a, const void* b) {
	return (strcmp(*(char**)a, *(char**)b));
}

int main() {
	int N, ans = 1;
	char S[200000][10], * s[200000];
	scanf("%d", &N);
	for (int i = 0; i < N; i++) scanf("%s", &S[i]);
	for (int i = 0; i < N; i++) s[i] = S[i];
	qsort((void*)s, N, sizeof(char*), compare);
	for (int i = 0; i < N - 1; i++) if (strcmp(s[i], s[i + 1]) != 0) ans++;
	printf("%d", ans);
	return 0;
}