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