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