#include <bits/stdc++.h>
int main() {
  int people, in;
  bool hard = false;
  scanf("%d", &people);
  while (people--) {
    scanf("%d", &in);
    if (in) hard = true;
  }
  printf("%s\n", (hard) ? "HARD" : "EASY");
  return 0;
}
