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

int main(void) {
    int N, count = 0;
    scanf("%d", &N);
    char s[200000][10];
    for (int i = 0; i < N; i++) {
        scanf("%s", s[i]);
    }

    for (int i = 0; i < N; i++) {
        for (int j = i + 1; j < N; j++) {
            if (strcmp(s[i], s[j]) == 0) {
                if (s[j][0] != '\0'){
                    count++;
                    s[j][0] = '\0';
                }
            }
        }
    }
    printf("%d\n", N - count);
    return 0;
}
