#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, a, x = 0;
  cin >> t;
  while (t--) {
    cin >> a;
    x += a;
  }
  if (x == 0)
    cout << "EASY\n";
  else
    cout << "HARD\n";
  return 0;
}
