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

int main(void)
{
  int N, counter = 0, count1, kind = 1;
  char S[20000][11];

  scanf("%d",&N);

  while(counter < N){
    scanf("%s",S[counter]);
    counter++;
  }

  for(count1 = 1; count1 < N; count1++){
    if(strcmp(S[0],S[count1]) != 0){
        kind++;
    }
  }

  printf("%d\n", kind);

  return 0;
}
