#include<stdio.h>
#include<string.h>
int main(void)
{
    int n,count=0,judge;
    char kigou;
    scanf("%d",&n);
    scanf("%c",&kigou);
    char s[n][12],d[n][12];
    for(int i=0;i<n;i++)
    {
        judge = 0;
        gets(s[i]);
        for(int j=0;j<count;j++)
        {
            if(strcmp(s[i],d[j])==0)
            {
                judge=1;
                break;
            }

        }
        if(judge==0)
        {
            strcpy(d[count],s[i]);
             count++;
        }
    }
    printf("%d",count);
}