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