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

struct list{
  char s[15];
  struct list *next;
};

char a[200007][14];

struct list *talloc(){
  return (struct list *)malloc(sizeof(struct list));
};

int main(){
  int n;
  int i;
  int ans = 0;
  int flag = 0;
  struct list *data[256];
  struct list *p,*t;

  scanf("%d", &n);

  for(i = 0;i < 256;i++) data[i] = NULL;

  for(i = 0;i < n;i++){
    scanf("%s", a[i]);
    flag = 0;
    t = data[a[i][0]];
    while(t != NULL){
      if(strcmp(a[i],t -> s) == 0){
        flag = 1;
        break;
      }

      t = t -> next;
    }

    if(flag == 1) continue;

    if(flag == 0){
      p = talloc();
      strcpy(p -> s,a[i]);
      p -> next = data[a[i][0]];
      data[a[i][0]] = p;
      ans++;
    }
  }

  printf("%d\n", ans);

  return 0;
}