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

int main(int argc, char const *argv[])
{
    int i, j, n, count;
    char t[11];
    char **s;

    scanf("%d", &n);
    s = (char**)malloc(sizeof(char*) * n);

    count = 0;
    for(i = 0; i < n; i++) {
        scanf("%s", t);
        for(j = 0; j < count; j++) {
            if(!strcmp(t, s[j])) break;
        }
        if(j == count) {
            s[count] = (char*)malloc(sizeof(char) * 11);
            strcpy(s[count++], t);
        }
    }
    printf("%d\n", count);
    return 0;
}
