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

typedef struct _str {
  char str[11];
  struct _str *next;
}string;

int main(void) {

  int n;
  scanf("%d", &n);
  string *str = calloc(1, sizeof(string));
  scanf("%s", str[0].str);
  int str_num = 1;
  for(int i = 1;i < n;i++) {
    char s[11] = {0};
    scanf("%s", s);
    int count = 0;
    for(int j = 0;j < str_num;j++) {
      if(!strcmp(s, str[j].str)) {
        count = 0;
        break;
      }
      count++;
    }
    if(count != 0) {
      str[str_num++].next = calloc(1, sizeof(string));
      strcpy(str[str_num].str, s);
    }
  }
  printf("%d\n", str_num);
  
  return 0;
}