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

int main(){
  
  int n;
  scanf("%d", &n);
  
  char s[n][11];
  for(int i = 0; i < n; i++){
    scanf("%s", s[i]);
  }
  
  qsort(s, n, 11, strcmp);
  
  int count = 1;
  for(int i = 0; i < n-1; i++){
    if(s[i] == s[i+1]){
      continue;
    }
    count++;
  }
  printf("%d", count);
  return 0;
}