#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define rep(i,a,b) for(int i = a;i <= b;i++)

int s_cmp(const void *a,const void *b){
  return strcmp(a,b);
}

int main(void){
  //acquisition of data
  int n; scanf("%d",&n);
  char s[n+1][11]; rep(i,0,n-1){scanf("%s",&s[i]);}
  //sort of data
	qsort(s,n,sizeof s[0],s_cmp);
  //output of result
  int cnt = 1;
  rep(i,1,n-1){
    if(strcmp(s[i-1],s[i]) != 0){
      cnt ++;
    }
  }
  printf("%d",cnt);
  return 0;
}
