#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
    int N, i, j, k, count = 1;
    scanf("%d", &N);
    char **S = malloc(sizeof(char*) * N);
    for (i = 0; i < N; i++) {
        S[i] = malloc(sizeof(char) * 11);
        scanf("%s", S[i]);
    }
    qsort(S, N, sizeof(char) * 11, strcmp);
    for (i = 1; i < N; i++) {
        if(strcmp(S[i-1],S[i])) count++;
    }
    printf("%d\n", count);
    return 0;
}