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

int compare_char(const void* left, const void* right) {
    char *left_char = (char *)left;
    char *right_char = (char *)right;

    return strcmp( left_char, right_char );
}

int main(){
    int N;
    scanf("%d",&N);
    char S[N][11];
    int count = 1;
    for(int i = 0;i<N;i++) scanf("%s",S[i]);
    qsort(S,N,sizeof(S[0]),compare_char);
    for(int i = 1;i<N;i++) if(strcmp(S[i-1],S[i])!=0) count++;
    printf("%d\n",count);
    return 0;
}