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

int check(char s[][10], char buf[], int cnt)
{
    for (int i = 0; i < cnt; i++) {
        if (strcmp(s[i], buf) == 0)
            return 1;
    }

    return 0;
}

int main()
{
    int n;
    int cnt = 0;
    char s[200000][10];

    scanf("%d", &n);

    for (int i = 0; i < n; i++) {
        char buf[10];
        scanf("%s", buf);
        if (check(s, buf, cnt) == 0) {
            strcpy(s[cnt], buf);
            cnt++;
        }   
    }

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

    return 0;
}