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

int main (void) {
    long N;
    
    int count = 0;

    scanf ("%d", &N);

    char S[N][10];

    for (int i = 0; i < N; i++) {
        scanf ("%s", S[i]);
    }

    for (int i = 0; i < N; i++) {
        for (int j = N - 1; j > i; j--) {
            if (strcmp (S[i],S[j]) == 0) {
                count++;
                break;
            }
        }
    }

    printf ("%d\n", N - count);

    return 0;
}