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

int main() {
  long n;
  scanf("%ld", &n);

  char s[100000][11];
  char x[11];
  long cnt = 0;
  for (long i = 0; i < n; i++) {
    scanf("%s", x);

    // try to find x in array of s
    int found = 0;
    for (long j = 0; j < cnt; j++) {
      if (strcmp(s[j], x) == 0) {
        found = 1;
      }
    }

    if (!found) {
      strcpy(s[cnt], x);
      cnt = cnt + 1;
    }
  }

  printf("%ld\n", cnt);

  return 0;
}