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

int compare_char(const void* left, const void* right) {
    char *left_char = (char *)left;
    char *right_char = (char *)right;

    return strcmp( left_char, right_char );
}

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

  qsort(s, n, sizeof(s[0]), compare_char);

  int c=1;

  for(int i=1;i<n;i++){
    if(strcmp(s[i-1], s[i])) c++;
  }
  printf("%d", c);
  return 0;
}
