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

int cmp( const void *p, const void *q ) {
    return -*(int*)p + *(int*)q;
}
//qsort(a,n,sizeof(int),cmp);

int cmp_s(const void * left, const void * right)
{
	char *left_char = (char *)left;
  char *right_char = (char *)right;
  return strcmp(left_char, right_char);
}
//qsort(s,n,sizeof(s[0]),cmp_s);

int end(void){
return 0;
}

int main (void){

int n,count=1;
  scanf("%d\n", &n);
  char s[n][11];
  for (int i = 0; i < n; i++) {
    scanf("%s", s[i]);
  }
 
  qsort(s,n,sizeof(s[0]),cmp_s);
	for (int i = 1; i < n; i++) {
		if (strcmp(s[i],s[i-1]) != 0) {
          count++;
		} 
	}
  printf("%d\n",count);
  end;

}

