#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, u = 0;
  cin >> n;
  int mas[100];
  for (int i = 0; i < n; i++) {
    cin >> mas[i];
  }
  for (int i = 0; i < n; i++) {
    if (mas[i] == 1) {
      u++;
    }
  }
  if (u > 0)
    cout << "HARD" << endl;
  else
    cout << "EASY" << endl;
  return 0;
}
