#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, j, count = 0;
  char s[11];
  char S[200002][11];
  scanf("%d", &n);
  scanf("%s", s);
  strcpy(S[count], s);
  count++;
  for (i = 0; i < n - 1; i++)
  {
    scanf("%s", s);
    int *result = (int *)bsearch(s, S, count, 11, compare);

    if (result == NULL)
    {
      strcpy(S[count], s);
      qsort(S, count, 11, compare);
      count++;
    }
  }
  printf("%d\n", count);

  return 0;
}