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

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);
}

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);

  int count_list[n];
	count_list[0] = 1;
	int max = 1;
	for (int i = 1; i < n; i++) {
		if (strcmp(s[i],s[i-1]) != 0) {
          count++;
		} 
	}
  printf("%d\n",count);

  return 0;
}
