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

int main(){
    int n;

    scanf("%d",&n);
 
    unsigned char s[n][11];
    char tmp[11];
    int count=0;

    for(int i=0;i<n;i++){
        scanf("%s",s[i]);
    }

    qsort(s, n, sizeof(char) * 11, strcmp);

    for(int k=0;k<n;k++){
        if((strcmp(s[k],s[k+1]))==0)count++;
    }
    printf("%d",n-count);

}