#include <bits/stdc++.h>
using namespace std;
int main() {
  int person, counter = 0;
  cin >> person;
  int arr[person];
  for (int i = 0; i < person; i++) {
    cin >> arr[i];
  }
  for (int i = 0; i < person; i++) {
    if (arr[i] != 0) {
      counter++;
    }
  }
  if (counter > 0) {
    cout << "HARD";
  } else if (counter == 0) {
    cout << "EASY";
  }
  return 0;
}
