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

static int cmpfunc(const void *lhs, const void *rhs)
{
    return strcmp(lhs, rhs);
}

int main ()
{
  int N;
  scanf("%d",&N);
  char S[2*10001][11]={'/0'};


  for (int i = 0;i<N;i++)
  {
  	scanf("%s",S[i]);

  }
qsort(S, N, sizeof(S[0]), cmpfunc);
 int count = 1;
 for (int i = 0;i<N-1;i++)
 {
 	if (strcmp(S[i],S[i+1])!=0)count++;
 }
  printf("%d",count);

 return 0;
}
