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

int cmp_s(const void * left, const void * right)
{
	char *left_char = (char *)left;
  char *right_char = (char *)right;
  return strcmp(left_char, right_char);
}

int main(void){

  long n;
  scanf("%ld\n", &n);
  char s[n][11];
  for (long i = 0; i < n; i++) {
    for (long j = 0; j < 11; j++) {
      scanf("%c", &s[i][j]);
      if (s[i][j] < 'a' || s[i][j] > 'z') {
        s[i][j] = '\0';
        break;
      }
    }
  }
  qsort(s, n, sizeof(s[0]), cmp_s);
  long count = 1;
  for (long i = 1; i < n; i++) {
    if (strcmp(s[i-1],s[i]) != 0) {
      count++;
    }
  }
  printf("%ld\n", count);

  return 0;
}