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

// #define SIZE (200000)
#define SIZE (400000)
#define LEN (10 + 1)

char table[SIZE][LEN];

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

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

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

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

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