#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  string cases;
  getline(cin, cases);
  getline(cin, str, '\n');
  for (int i = 0; i < str.length(); i++) {
    if (str[i] == '1') {
      cout << "HARD" << endl;
      return 0;
    }
  }
  cout << "EASY";
  return 0;
}
