#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, i, x = 0;
  cin >> n;
  int a[105];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] == 0) x++;
  }
  if (x == n)
    cout << "EASY" << endl;
  else
    cout << "HARD" << endl;
  return 0;
}
