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

typedef unsigned long long int ull;
typedef long long int ll;
typedef long double ld;

// qsort に関数ポインタとして渡す関数
int compare_base(const void *b, const void *f) {
  return (strncmp(*(char **)b, *(char **)f, 10));
}

int main(void) {
  int scan; // scanf result
  int answer; // to output 
  int n; // to input 
  char **s;
  
  answer = 0;
  scan = scanf("%d", &n);
  s = (char **)malloc(sizeof(char *) * (n + 1));
  for (int i = 0; i < n; i++) {
    s[i] = (char *)malloc(sizeof(char) * 11);
    scan = scanf("%s", s[i]);
  }

  qsort((void *)s, n, sizeof(char *), compare_base);
  for (int i = 0; i < n; i++) {
    if (i == 0 || (i >= 1 && strncmp(s[i - 1], s[i], 10) != 0)) {
      answer++;
    }
  }

  printf("%d", answer);
  return (0);
}
