#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, ans = 0;
  cin >> a;
  for (int i = 1; i <= a; i++) {
    cin >> b;
    if (b == 1) {
      cout << "HARD";
      ans++;
      break;
    }
  }
  if (ans == 0) {
    cout << "EASY";
  }
}
