#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  int arr[n];
  bool fl = false;
  for (int i = 0; i < n; i++) {
    scanf("%d", &arr[i]);
    if (arr[i] == 1) {
      fl = true;
    }
  }
  if (fl == false)
    printf("EASY");
  else
    printf("HARD");
  return 0;
}
