#include<stdio.h>
int main(void)
{
	int n = 0,count = 1,true_cnt = 1;
	int list[20010];
	char s[20010][13];

	list[0] = 0;

	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%s", s[i]);
		if (i > 0) {
			for (int j = 0; j < true_cnt; j++) {
				if (strcmp(s[list[j]], s[i]) != 0) {
					list[count] = i;
					count++;
				}
				else {
					count = true_cnt;
					break;
				}
			}
		}
		true_cnt = count;
	}

	printf("%d\n", true_cnt);

	return 0;
}