#include <bits/stdc++.h>
int main() {
  int people, ans, flag;
  std::cin >> people;
  for (int i = 0; i < people; ++i) {
    std::cin >> ans;
    if (ans) {
      std::cout << "HARD";
      return 0;
    }
  }
  std::cout << "EASY";
}
