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

int asc(const void *a, const void *b) {

    return (strcmp((char *)a, (char *)b));
}
 


int main(void){

    int N = 0;
    int count = 0;
    scanf("%d", &N);

    char S[N][10];

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

    qsort((void *)S, sizeof(S) / 10, (size_t)10, asc);

    for (int j = 1; j < N; j++){
        if (strcmp(S[j], S[j - 1]) != 0){
            count++;
        } 
    }

    count++;
    printf("%d\n", count);

    return 0;
}