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