#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  scanf("%d", &n);
  int ans = 0;
  for (int x, i = 1; i <= n; i++) {
    scanf("%d", &x);
    ans |= x;
  }
  if (ans)
    printf("HARD\n");
  else
    printf("EASY\n");
  return 0;
}
