#include <bits/stdc++.h>
using namespace std;
template <class T>
T sq(T x) {
  return x * x;
}
template <class T>
T gcd(T a, T b) {
  return (b != 0 ? gcd<T>(b, a % b) : a);
}
template <class T>
T lcm(T a, T b) {
  return (a / gcd<T>(a, b) * b);
}
void solve() {
  int flg = 0;
  int n, x;
  cin >> n;
  while (n--) {
    cin >> x;
    if (x == 1) flg = 1;
  }
  if (flg)
    puts("HARD");
  else
    puts("EASY");
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
