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