#include <bits/stdc++.h>
int main() {
  int num, i, opn, count = 0;
  scanf("%d", &num);
  for (i = 0; i < num; i++) {
    scanf("%d", &opn);
    if (opn == 0) count++;
  }
  if (count == num)
    printf("EASY");
  else
    printf("HARD");
  return 0;
}
