#include<stdio.h>
#include<stdlib.h>
int c(const void *a, const void *b){return *(char*)b-*(char*)a;}
int i,j,n,a[2000]={},b,r=1;
char s[200000][11];
int main(){
    scanf("%d",&n);
    for(i=0;i<n;i++)scanf("%s",s[i]);
    qsort(s,n,11,c);
    for(i=0;i<n-1;i++)if(strcmp(s[i],s[i+1]))r++;
    printf("%d",r);
    return 0;
}