#include <bits/stdc++.h>
using namespace std;
int main() {
  cout << setprecision(10);
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    if (x == 1) {
      cout << "HARD\n";
      return 0;
    }
  }
  cout << "EASY\n";
  return 0;
}
