#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define B 100
#define W 12

struct cell{
  char name[W];
  struct cell *next;
};
int h(char *x){
  int i,hash;
  hash = i = 0;
  while(x[i] != 0 && i<W){
    hash += (int)x[i];
    i++;
  }
  hash = hash%B;
  return hash;
}
int insert(char *x, struct cell **A){
  int k;
  struct cell *p,*q,*r;
  k = h(x);
  q = A[k];
  p = (struct cell *)malloc(sizeof(struct cell));
  if(q == NULL) A[k] = p;
  else{
    while(q != NULL){
      if(strcmp(q->name, x)==0){
        free(p);
        return 0;
      }else{
        r = q;
        q = q->next;
      }
    }
    r->next = p;
  }
  strcpy(p->name, x);
  p->next = NULL;
  return 1;
}

int main(void){
  int N,i,total=0;
  char name[12];
  struct cell *A[B];
  scanf("%d\n",&N );
  for(i=0; i<B; i++) A[i] = NULL;
  for(i=0; i<N; i++){
    scanf("%s\n", name);
    total += insert(name, A);
  }
  printf("%d\n",total );
  return 0;
}
