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

int compare_char(const void* left, const void* right) {
    char *left_char = (char *)left;
    char *right_char = (char *)right;

    return strcmp( left_char, right_char );
}

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

  int ans=1;
  for(int i=1;i<n;i++){
    if(strcmp(s[i],s[i-1])!=0){
      ans++;}}
  printf("%d\n",ans);
  
  return 0;
}
