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