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