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