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

int main(void){
    register int i;
    int n;
    scanf("%d",&n);
    char kind[n][11];
    for(i = 0;i < n;i++)scanf("%s",kind[i]);
    qsort(kind,n,11,strcmp);
    int ans = 1;
    for(i = 1;i < n;i++)if(strcmp(kind[i-1],kind[i]))ans++;
    printf("%d",ans);
}