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

int main(int argc, char const *argv[])
{
  unsigned int N;
  scanf("%u", &N);

  char **S = malloc(sizeof(char *) * N);
  for (unsigned int i = 0; i < N; i++)
  {
    S[i] = malloc(sizeof(char) * 10);
  }

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

  qsort(S, N, sizeof(char *), strcmp);

  unsigned int get_num = N;
  unsigned int base = 0;
  for (int i = 1; i < N; i++)
  {
    if (strcmp(S[base], S[i]) == 0)
    {
      get_num--;
    }
    else
    {
      base = i;
    }
  }
  printf("%d", get_num);
  return 0;
}