#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, sum = 0;
  cin >> a;
  while (a--) {
    int b;
    cin >> b;
    sum += b;
  }
  if (sum == 0)
    cout << "EASY";
  else
    cout << "HARD";
  return 0;
}
