#include <bits/stdc++.h>
using namespace std;
const int maxn = (int)1e5 + 1;
const int N = 20000000;
int n;
int a[maxn];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] == 1) {
      cout << "HARD";
      return 0;
    }
  }
  cout << "EASY";
}
