#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, o, count = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> o;
    if (o == 1) {
      count = 1;
    }
  }
  if (count == 0) {
    cout << "EASY" << endl;
  } else {
    cout << "HARD" << endl;
  }
}
