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

int main(void) {
    int n = 0;
    char s[200001][11] = { 0 };
    int count = 0;
    int i = 0, j = 0;

    scanf("%d", &n);

    for (i = 0; i < n; i++) {
        scanf("%*c%s", s[count]);
        if (i == 0) {
            count++;
            continue;
        }
        for (j = 0; j < count; j++) {
            if (s[j][0] != s[count][0])continue;
            if (strcmp(s[j], s[count]) == 0) {
                break;
            }
        }
        if (j == count)count++;
    }

    printf("%d", count);

    return 0;
}