#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, counth = 0;
  int x;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &x);
    if (x == 0) {
      counth++;
    }
  }
  if (counth == n)
    printf("EASY");
  else
    printf("HARD");
  return 0;
}
