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

int main()
{
    int n, i;
    int cnt = 1;
    char s[200000][11];

    scanf("%d", &n);

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

    qsort(s, n, sizeof(char[11]), strcmp);

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

    printf("%d\n", cnt);

    return 0;
}