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

struct _item
{
    char name[10];
    struct _item *next;
};

int main()
{
    int N;
    scanf("%d", &N);
    char s[10];
    struct _item *items = malloc(sizeof(struct _item));
    scanf("%s", s);
    strcpy(items->name, s);
    items->next = NULL;
    int counter = 1;
    for (int i = 0; i < N - 1; i++)
    {
        scanf("%s", s);
        for (struct _item *tmp = items; tmp != NULL; tmp = tmp->next)
        {
            if (strcmp(tmp->name, s) == 0)
            {
                break;
            }
            if (tmp->next == NULL)
            {
                struct _item *tmp_item = malloc(sizeof(struct _item));
                strcpy(tmp_item->name, s);
                tmp_item->next = NULL;
                tmp->next = tmp_item;
                counter++;
                break;
            }
        }
    }

    printf("%d", counter);

    return 0;
}