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