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