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

int main(void)
{
	int n = 0;
	char s[200000][10];	

	scanf("%d", &n);

	int i = 0;

	while(i < n)
	{
		scanf("%s", s[i]);
		i++;
	}
	int max;
	int j = 0;
	char temp[10];
	max = n - 2;
	while(max >= 1)
	{
		while(j <= max)
		{
			if(strcmp(s[j], s[j + 1]) > 0)
			{
				strcpy(temp, s[j]);
				strcpy(s[j], s[j + 1]);
				strcpy(s[j + 1], temp);
			}
			j++;
		}
		max--;
	}

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

	printf("%d", count + 1);
	return (0);
}

