#include <stdio.h>
#include <string.h>
int main(void){
    // Your code here!
    long long int i, ii, iii, c;
    scanf("%lld", &i);
    char s[i][11];
    char *ss[10][i];
    long long int z[12] = {};
    long long int tmp;
    
    for (ii = 0; ii < i; ii++)
        scanf("%s", s[ii]);
    tmp = strlen(s[0]);
    ss[tmp][0] = s[0];
    c = 1;
    z[tmp]++;
    for (ii = 1; ii < i; ii++)
    {
        tmp = strlen(s[ii]);
        for (iii = 0; iii < z[tmp]; iii++)
            if (!strcmp(s[ii],ss[tmp][iii]))
                break;
        if (iii == z[tmp])
        {
            ss[tmp][z[tmp]] = s[ii];
            z[tmp]++;
            c++;
        }
    }
    printf("%lld", c);
    return (0); 
}

