#include<bits/stdc++.h>
using namespace std;
int main ()
{
int n;
cin >> n;
int arrOfOpinion[n];
for(int i=0; i<n; i++) {
cin >> arrOfOpinion[i];
}
int conditionedOpinion = 0;
for(int i = 0; i<n; i++) {
if(arrOfOpinion[i] == 1) {
conditionedOpinion = 1;
}
}
if(conditionedOpinion == 0) {
cout << "EASY";
} else {
cout << "HARD";
}
return 0;
}