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

int main()
{
	int n, i, count=1;
	scanf("%d", &n);
	char s[n][11];

	for (i = 0; i < n; i++)
		scanf("%s", s[i]);

	qsort(s, n, sizeof(char)*11, strcmp);

	for (i = 0; i < n-1; i++) {
		if (strcmp(s[i], s[i + 1]) != 0)
			count++;
	}

	printf("%d\n", count);
	
	return 0;
}