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