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

char item[200005][15];

void mergsort(int l, int r) {
    if (r - l <= 0) return;
    int mid = l + (r - l >> 1);
    mergsort(l, mid);
    mergsort(mid + 1, r);
    char a[r + 1][15] = {};
    int tl = l, tr = mid + 1;
    for (int i = l; i <= r; i++) {
        if (tl != mid + 1 && (tr == r + 1 || strcmp(item[tl], item[tr]) <= 0)) {
            for (int j = 0; j < strlen(item[tl]); j++)
                a[i][j] = item[tl][j];
            tl++;
        }
        else {
            for (int j = 0; j < strlen(item[tr]); j++)
                a[i][j] = item[tr][j];
            tr++;
        }
    }
    for (int i = l; i <= r; i++) {
        memset(item[i], 0, 15);
        for (int j = 0; j < strlen(a[i]); j++)
            item[i][j] = a[i][j];
    }
    return;
}

int main() {
    int n; scanf("%d", &n);
    int cnt = 0;
    for (int i = 0; i < n; i++)
        scanf("%s", item[i]);
    mergsort(0, n - 1);
    for (int i = 1; i < n; i++)
        if (strcmp(item[i], item[i - 1]) != 0) cnt++;
    printf("%d\n", cnt + 1);
}