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

int		main()
{
	int		N;
	char	str[30000][11];
	int	count = 1;

	scanf("%d\n", &N);
	for (int i = 0; i < N; i++)
	{
		scanf("%s\n", str[i]);
		for (int n = 0; n < i; n++)
		{
			if (!strcmp(str[i], str[n]))
				break;
			if (n + 1 == i)
				count++;
		}
	}
	printf("%d\n", count);
	return (0);
}
