#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  bool ez = true;
  cin >> n;
  int p[n];
  for (int i = 0; i < n; i++) {
    scanf("%d", &p[i]);
    if (p[i] == 1) ez = false;
  }
  if (ez)
    cout << "EASY" << endl;
  else
    cout << "HARD" << endl;
}
