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

int compare_int(const void *a, const void *b)
{
    return *(int *)a - *(int *)b;
}

int main()
{
    int n, count = 0;

    scanf("%d", &n);
    char s[n][11];
    for (int i = 0; i < n; i++)
    {
        scanf("%s", s[i]);
    }

    qsort(s, n, 11, compare_int);

    for (int i = 0; i < n; i++)
    {
        if (strcmp(s[i], s[i + 1]) != 0)
            count++;
    }

    printf("%d", count);

    return 0;
}