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