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