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

int str_comp(const void *a, const void *b){
    return (strcmp( *(char **)a , *(char **)b  ));
}


int main(void){
    int N;
    scanf("%d", &N);
    char **words = (char * *)malloc(N * sizeof(char *));
    for (int i = 0; i < N; i++) {
        words[i] = (char *)malloc(10 * sizeof(char));
        scanf("%s", words[i]);
    }
    qsort(words,N,sizeof (words), str_comp);
    int ans = 0;
    for (int i = 0; i < N - 1; i++) {
        if (strcmp(words[i],words[i + 1]) != 0){
            ans++;
        }
    }
    printf("%d\n",ans + 1);

}
