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