#include<stdio.h>
#include<string.h>
int main()
{
	int n;
	scanf("%d",&n);
	char arr[200005][11];
	int count=0;int flag=0;int k=0;
	for (int i = 0; i < n; ++i)
	{char temp[11];
		scanf("%s",temp);
	//	printf("k:%d\n",k );
		for (int j = 0; j < k; j++)
		{
			if(!strcmp(temp,arr[j]))
			{//printf("i:%d\n",i );
				flag=1;break;
			}
		}
		if(flag==0)
		{
			strcpy(arr[k],temp);k++;count++;
		}
		else
		{
			flag=0;
			
		}
	}

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