#include <bits/stdc++.h>
using namespace std;
int main() {
  int count;
  scanf("%d", &count);
  int temp;
  int indicator = 0;
  for (int i = 0; i < count; i++) {
    scanf("%d", &temp);
    if (temp == 1) {
      printf("HARD");
      indicator = 1;
      break;
    }
  }
  if (indicator == 0) {
    printf("EASY");
  }
}
