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