/*
problem link: https://www.codechef.com/LP1TO201/problems/PROBCAT
*/
#include<iostream>
#include<climits>
#define ll long long
#include<vector>
#include<stack>
#include<string>
#include<algorithm>
using namespace std;
void solve()
{
ll x;
cin >> x;
if (x >= 1 && x < 100)
cout << "Easy
";
else if (x >= 100 && x < 200)
cout << "Medium
";
else
cout << "Hard
";
}
int main()
{
int t;
cin >> t;
while (t--)
{
solve();
}
return 0;
}