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