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

int main(void){
  int n; scanf("%d",&n);
  char s[200010][10]; rep(i,1,n){scanf("%s",&s[i]);}

  char box[200010][10];
  rep(k,0,strlen(s[1])-1){box[1][k] = s[1][k];}
  int box_cnt = 1;

  rep(i,2,n){
    rep(j,1,box_cnt){
      if(strcmp(&s[i][0],&box[j][0])!=0){
        rep(k,0,strlen(s[i])-1){
          box[box_cnt+1][k] = s[i][k];
        }
        box_cnt ++;
        break;
      }
    }
  }

  printf("%d",box_cnt);
  return 0;
}