#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, c = 0;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    if (n == 1) c = 1;
  }
  if (c == 0)
    cout << "EASY";
  else
    cout << "HARD";
  return 0;
}
