#include <bits/stdc++.h>
using namespace std;
int main() {
  bool f = false;
  long long a, n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a == 1) f = true;
  }
  if (f)
    cout << "HARD";
  else
    cout << "EASY";
  return 0;
}
