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

int main(){
    int n;
    unsigned char s[200001][10];
    char tmp[10];
    int count=0;

    scanf("%d",&n);

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

    for(int j=1;j<n;j++){
        for(int t=1;t<n;t++){
            if((strcmp(s[t-1],s[t]))<=0){
            strcpy(tmp,s[t]);
            strcpy(s[t],s[t-1]);
            strcpy(s[t-1],tmp);
            }
        }
    }

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