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