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

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