#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> nums;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    nums.push_back(a);
  }
  if (find(nums.begin(), nums.end(), 1) != nums.end()) {
    cout << "HARD" << endl;
  } else {
    cout << "EASY" << endl;
  }
  return 0;
}
