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



int main(void)
{
    int n;
    scanf("%d", &n);
    char arr[n][10];

    for (int j = 0; j < n; j++)
    {
        scanf("%s",arr[j] );
    }
    int count = n;
    for(int j = 0; j < n-1; j++)
    {
        for(int l = j+1; l < n; l++)
        {
            if (!(strcmp(arr[j], arr[l])))
                --count;
        }
    }
    /*if(count == 0)
    {
        count = 1;
    }*/
    printf("%d\n", count);

}
