#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long b, x = 0;
  while (n--) {
    cin >> b;
    if (b == 1) {
      x = 1;
    }
  }
  if (x == 1) {
    cout << "hard" << endl;
  } else {
    cout << "easy" << endl;
  }
  return 0;
}
