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