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

typedef struct {
    long int li_0 : 8;
    long int li_1 : 8;
}li;

typedef union {
    char St[16];
    li Li;
}A;

int main(void) {
    A a[200001] = {0};
    int n = 0;
    A in_a = {0};
    int i = 0;
    int hash = 0;
    int count = 0;

    scanf("%d", &n);

    for (i = 0; i < n; i++) {
        scanf("%*c%s", in_a.St);
        hash = in_a.Li.li_0 % 200001;
        if (a[hash].Li.li_0 == 0) {
            strcpy(a[hash].St, in_a.St);
            count++;
            continue;
        }
        
        while (1) {
            if (strcmp(a[hash].St, in_a.St) == 0) {
                break;
            }
            hash = (hash + 1 )% 200001;
            if (a[hash].Li.li_0 == 0) {
                strcpy(a[hash].St, in_a.St);
                count++;
                break;
            }
        }
    }

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

    return 0;
}