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