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