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

void swap(char *str1, char *str2) {
  char *tmp;
  if (strcmp(str1, str2)) {
    tmp = str1;
    str1 = str2;
    str2 = tmp;
  }
}

int main(void) {
  int count, i, j, duplication = 0;
  char kuzi[count][10];

  if (scanf("%d", &count));
  for (i = 0; i < count; i++) {
    if(scanf("%s", kuzi[i]));
  }

  for (i = 0; i < count; i++) {
    for (j = count - 1; j >= 0; j--) {
      swap(kuzi[i], kuzi[j]);
    }
  }

  for (i = 0; i < count - 1; i++) {
    if (strcmp(kuzi[i], kuzi[i + 1]) == 0) {
      duplication++;
    } 
  }
  printf("%d", count - duplication);
  return 0;
}