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

char item[200005][15];

int main() {
    int n; scanf("%d", &n);
    int cnt = 0;
    for (int i = 0; i < n; i++) {
        char s[15]; scanf("%s", s);
        int nw = 1;
        for (int j = 1; j <= cnt; j++)
            if (strcmp(s, item[j]) == 0) nw = 0;
        if (nw) {
            cnt++;
            for (int j = 0; j < strlen(s); j++)
                item[cnt][j] = s[j];
        }
    }
    printf("%d\n", cnt);
}