#include <bits/stdc++.h>
int main() {
  int n, op, vr = 1;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &op);
    if (op == 1) vr = 0;
  }
  if (vr == 1)
    printf("EASY\n");
  else
    printf("HARD\n");
  return 0;
}
