#include <bits/stdc++.h>
int main(int argc, char *argv[]) {
  int i, n, resp[101], c1 = 0, c2 = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &resp[i]);
    if (resp[i] == 0)
      c1++;
    else
      c2++;
  }
  if (c2 == 0)
    printf("EASY");
  else
    printf("HARD");
  return 0;
}
