#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(){
  int unused __attribute__((unused));
  int i, j, cnt, Slen, gachalen, N, length = 0;
  char **S, **gacha;

  unused = scanf("%d", &N);
  S = malloc(sizeof(char *)*N);
  gacha = malloc(sizeof(char *)*N);
  for(i=0; i<N; i++){
    S[i] = malloc(sizeof(char)*11);
    gacha[i] = malloc(sizeof(char)*11);
    unused = scanf("%s", S[i]);
  }

  for(i=0; i<N; i++){
    cnt = 0;
    Slen = strlen(S[i]);
    for(j=0; j<length; j++){
      gachalen = strlen(gacha[j]);
      if(Slen != gachalen) cnt++;
      else if(Slen==gachalen && strncmp(S[i], gacha[j], 10)!=0) cnt++;
      }
      if(cnt==length){
        strcpy(gacha[j],S[i]);
        length++;
      }
  }
  printf("%d", length);

  for(i=0; i<N; i++){
    free(S[i]);
    free(gacha[i]);
  }
  free(S);
  free(gacha);
  return 0;
}