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