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

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

  for (int i = n; i >= 0; i--){
    for (int j = i - 1; j >= 0; j--){
      if (strcmp(s[i],s[j]) == 0) strcpy(s[j],"0");
    }
  }

  for (int i = 0; i < n; i++) if (strcmp(s[i],"0") == 0) cnt++;

  printf("%d",n - cnt);

  return 0;
}