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