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

int main(){
    int n,i,count=1;
    char str[200005][15]={};
    scanf("%d",&n);
    for (i=0; i<n; i++) scanf("%s",str[i]);
    qsort(str, n, sizeof(char[15]), strcmp);
    for (i=1; i<n; i++) if (strcmp(str[i], str[i+1])) count++;
    printf("%d\n",count);
    return 0;
}
