#include <bits/stdc++.h>
using namespace std;
const long long LL_INF = 1e18 + 5;
const int INT_INF = 1e9 + 5;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  char a;
  while (n--) {
    cin >> a;
    if (a == '1') cout << "HARD", exit(0);
  }
  cout << "EASY";
  return 0;
}
