#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));
    for (i = 0; i < N; i++) {
        char temp[11];
        scanf("%s\0", temp);
        for (j = 0; j < count; j++) {
            for (k = 0; k < 11; k++) {
                if (S[j * 11 + k] == temp[k] && temp[k])
                    continue;
                else
                    break;
            }
            if (temp[k] == 0) break;
        }
        if (j == count) {
            strcpy(&S[j * 11], temp);
            count++;
        }
    }
    printf("%d\n", count);
    return 0;
}