#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool flag = false;
  int x = 0;
  for (int i = 0; i < n; ++i) {
    cin >> x;
    if (x == 1) {
      flag = true;
    }
  }
  cout << (!flag ? "EASY" : "HARD") << endl;
  return 0;
}
