#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void) {
	int i, n, c, N;
	char* x;
	scanf("%d", &N);
	x = (char*)malloc(N * sizeof(int));

	c = N;

	for (i = 0; i < N; i++) {
		scanf("%s", &x[i]);
	}

	for (i = 0; i < N; i++) 
 {
	for (n = 0; n < N; n++) 
	{
		if (!strcmp(&x[i], &x[n])) c = c - 1;
	}
 }
	printf("%d", c);
	free(x);
	return 0;
}