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

int cmp(const void* x, const void* y) {
	return strcmp(x, y);
}

int N;
char S[222222][12];

int main(void) {
	int i;
	int count = 1;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%11s", S[i]) != 1) return 1;
	}
	qsort(S, N, sizeof(*S), cmp);
	for (i = 1; i < N; i++) {
		if (strcmp(S[i - 1], S[i]) != 0) count++;
	}
	printf("%d\n", count);
	return 0;
}
