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