#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int comp_char(const void*a,const void*b){
     char *aa=(char*)a;
     char *bb=(char*)b;
     return strcmp(aa,bb);
} 
int main(void){
 int n,ans=1;
 static char s[200000][11];
 scanf("%d",&n);
 for(int i=0;i<n;i++){
    scanf("%s",s[i]);
 }
 qsort(s,n,sizeof(s[0]),comp_char);
 for(int i=1;i<n;i++){
    if(strcmp(s[i],s[i-1])==0){
       continue;
    }else{
       ans++;
    }
   }
    printf("%d\n",ans);
    return 0;
}