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