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

#define N 200000

int upchar(const void* left, const void* right){
  return strcmp( (char*)left, (char*)right );
}

void main(){
  int n, cnt=1;
  char s[N][11];
  scanf("%d",&n);
  for(int i=0; i<n; i++)
    scanf("%s",&s[i]);

  qsort(s, n, sizeof(char)*11, upchar);
  
  for(int i=1; i<n; i++){
    if(strcmp( s[i-1], s[i] ) != 0)
      cnt++;
  }
  
  printf("%d",cnt);
}