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