#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int a;
  int c = 0;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a == 1) c = 1;
  }
  if (c == 1)
    cout << "HARD" << endl;
  else
    cout << "EASY" << endl;
  return 0;
}
