#include <bits/stdc++.h>
int main() {
  int a, i, b[1000], c = 0;
  scanf("%d", &a);
  for (i = 0; i < a; i++) scanf("%d", &b[i]);
  for (i = 0; i < a; i++)
    if (b[i] == 1) c = 1;
  if (c == 1)
    printf("HARD");
  else
    printf("EASY");
}
