/*
 * FileName:     C
 * CreatedDate:  2020-04-26 21:11:54 +0900
 * LastModified: 2020-04-26 21:22:34 +0900
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
    int n;
    scanf("%d",&n);
    char str[n][11];
    int flag=0,count=0;
    memset(str,'\0',sizeof(str));
    for(int i=0;i<n;i++){
        scanf("%s",str[i]);
        for(int j=0;j<i;j++){
            if(strcmp(str[i],str[j])==0){
                flag=1;
                break;
            }
        }
        if(flag==0){
            count++;
        }
        flag=0;
    }
    printf("%d\n",count);
    return 0;
}
