#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  bool p = 1;
  cin >> a;
  int A[a];
  for (int i = 0; i < a; i++) {
    cin >> A[i];
    if (A[i] == 1) {
      p = 0;
    }
  }
  if (p) {
    cout << "EASY";
  } else {
    cout << "HARD";
  }
  return 0;
}
