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