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

int main()
{
  int n;
  char s[10];
  scanf("%d",&n);
  
  char *table[n];
  int *type[n];
  
  for (int i = 0; i < n; i++) 
  {
	scanf("%s", s);
    table[i]=(char *)malloc(sizeof(char)*(strlen(s)+1));
    strcpy(table[i], s);
    
    type[i] = (int *)malloc(sizeof(int));
    type[i] = -1;
  }
  
  int count;
  count=0;
  
  for(int i = 0; i < n-1; i++)
  {
     if(type[i] == -1)
     {
     	for(int k = n-1; k > i;  k--)
     	{
       		if(strcmp(table[i], table[k])==0)
       		{
         		type[k] = i;
         		count++;
       		}
     	}
     }
  }
  
  printf("%d\n", n-count);
  
  return 0;
}
