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

// #define SIZE (200000)
#define SIZE (65536 * 4)
#define LEN (16)

int flag[SIZE];
char table[SIZE][LEN];

int hash(char *str)
{
        int i;
        int val;

        i = 0;
        val = 0;
        while(str[i] != '\0') {
                val = (val * 27 + (str[i] - 'a')) % SIZE;
                ++i;
        }

        return val;
}

main()
{
        int i;
        int n;
        int s;
        char buf[LEN];

        memset(table, 0x00, sizeof(table));

        s = 0;
        scanf("%d", &n);
        for(i = 0; i < n; ++i) {
                int j;

                scanf("%s", buf);
                j = hash(buf);
                while(1) {
#if 0
                        if(strcmp(buf, table[j]) == 0) {
                                break;
                        }
                        if(flag[j] == 0) {
                                flag[j] = 1;
                                s++;
                                break;
                        }
#endif
                        if(strcmp(buf, table[j]) == 0) {
                                break;
                        }
                        if(table[j][0] == '\0') {
                                strcpy(table[j], buf);
                                s++;
                                break;
                        }
                        j = (j + 1) % SIZE;
                }
        }
        printf("%d", s);
}