#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int temp, b = 1;
  vector<int> answer;
  for (int i = 0; i < n; i++) {
    cin >> temp;
    answer.push_back(temp);
  }
  for (int i = 0; i < n; i++) {
    if (answer[i] == 1) {
      b = 0;
      cout << "HARD" << endl;
      break;
    }
  }
  if (b == 1) cout << "EASY" << endl;
}
