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