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