#include <bits/stdc++.h>
using namespace std;
int main() {
  int mx = 1, n, f = 2;
  cin >> n;
  int b[n];
  for (int i = 0; i < n; i++) {
    cin >> b[i];
    if (b[i] == 1) {
      f = 2;
      break;
    } else {
      f = 5;
    }
  }
  if (f == 2) {
    cout << "HARD" << endl;
  }
  if (f == 5) {
    cout << "EASY" << endl;
  }
}
