#include <bits/stdc++.h>
int main() {
  int n;
  std::cin >> n;
  int curMax = 0;
  for (int i = 0; i < n; i++) {
    int curAns;
    std::cin >> curAns;
    curMax = std::max(curMax, curAns);
  }
  puts(curMax > 0 ? "HARD" : "EASY");
  return 0;
}
