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

int main() {
    int n;
    scanf("%d", &n);


    int** p = (int**)malloc(sizeof(int*) * n);
    for (int i = 0; i < n; ++i)
    {
        p[i] = (int*)malloc(sizeof(int) * 10);
        scanf("%s", p[i]);
    }

    char tmp[10] = { 0 };
    int count = 0;
    for (int k = 0; k < n; k++) {
        if (p[k] == "empty") {
            continue;
        }
        strcpy(tmp, p[k]);
        for (int j = k; j < n; j++) {
            if (p[j] == tmp) {
                p[j] = "empty";
            }
        }
        count++;
    }
    printf("%d", count);
    return 0;
}
