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

int main(){
  int n, i, j;
  char s[200001][11];
  scanf("%d", &n);
  for(i=0; i<n; i++) scanf("%s", s[i]);

  qsort(s, n, 11, strcmp);

  int counter = 1;
  for(i=1; i<n; i++){
    if(strcmp(s[i-1], s[i]) != 0) counter++;
  }

  printf("%d\n", counter);
  
  return 0;
}
  
