#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#define ll long long

int compare(const void *a, const void *b)
{
  return strcmp((char *)a, (char *)b);
}

int main(void)
{
  int n, i, count = 1;
  char s[11];
  char S[200002][11];
  scanf("%d", &n);
  for (i = 0; i < n; i++)
  {
    scanf("%s", S[i]);
  }
  qsort(S, n, 11, compare);
  for (i = 0; i < n - 1; i++)
  {
    if (!(strcmp(S[i], S[i + 1]) == 0))
    {
      count++;
    }
  } /*
    int *result = (int *)bsearch(s, S, count, 11, compare);
    if (result == NULL)
    {
      strcpy(S[count], s);
      count++;
      qsort(S, count, 11, compare);
    }
  }*/
  printf("%d\n", count);
  return 0;
}