#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
    int N, i, j, k, count = 1;
    char S[200000][11];
    scanf("%d", &N);
    for (i = 0; i < N; i++)
        scanf("%s", S[i]);

    qsort(S, N, sizeof(S[0]), strcmp);

    for (i = 1; i < N; i++)
        if (strcmp(S[i - 1], S[i])) count++;

    printf("%d\n", count);
    return 0;
}