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