#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a;
  bool rasp = true;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a;
    if (a == 1) {
      rasp = false;
      break;
    }
  }
  if (rasp == true) {
    cout << "EASY" << endl;
  } else {
    cout << "HARD" << endl;
  }
}
