#include<stdio.h>
#include<string.h>
#include <stdlib.h>
int compare_char(const void* left, const void* right) 
{
    char *left_char = (char *)left;
    char *right_char = (char *)right;

    return strcmp( left_char, right_char );
}
int main(void)
{
    int n,count=1;
    char kigou;
    scanf("%d",&n);
    char s[n][11];
    scanf("%c",&kigou);
    for(int i=0;i<n;i++)
    {
        gets(s[i]);
    }
    qsort(s,n,sizeof(s[0]),compare_char);
    for(int i=1;i<n;i++)
    {
        if(strcmp(s[i],s[i-1])!=0)
        {
            count++;
        }
    }
    printf("%d",count);
}