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