#include <bits/stdc++.h>
int main() {
  int n;
  std ::cin >> n;
  bool isEasy = true;
  while (n--) {
    char a;
    std ::cin >> a;
    if (a == '1') isEasy = false;
  }
  if (isEasy)
    std ::cout << "EASY\n";
  else
    std ::cout << "HARD\n";
}
