#include<stdio.h>
#include<string.h>
#include<stdbool.h>
#define BUFSIZE 100

int main() {
    int N;
    scanf("%d", &N);
    char prizes[N][11];
    int count = 0;

    for(int n = 0; n < N; n++) {
        char prize[11];
        scanf("%s", prize);

        bool isDuplicate = false;
        for(int m = 0; m < count; m++) {
            if(strcmp(prizes[m], prize) == 0) {
                isDuplicate = true;
                break;
            }
        }

        if(isDuplicate == false) {
            strcpy(prizes[count], prize);
            count++;
        }
    }
    printf("%d\n", count);
}
