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