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