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

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

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

    for(i = 0; i < 10; i++) count[i] = 0;

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

    sum = 0;
    for(i = 0; i < 10; i++) sum += count[i];
    printf("%d\n", sum);
    return 0;
}
