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