#include <bits/stdc++.h>
int main() {
  int n, input, k = 0;
  scanf("%d", &n);
  while (n--) {
    scanf("%d", &input);
    if (input == 1) {
      k = 1;
    }
  }
  if (k == 1) {
    printf("HARD");
  } else {
    printf("EASY");
  }
  return 0;
}
