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

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]);

        for (int j = 0; j < i; j++){
            if (strcmp(S[i], S[j]) == 0){
                count++;
                break;
            }
        }
    }
    N -= count;
    printf("%d\n", N);

    
    return 0;
}