Read problem statements in [Mandarin], [Russian], and [Vietnamese] as well.

Chef prepared a problem. The admin has rated this problem for x points. 

A problem is called :

1) Easy if 1 ≤ x < 100 

2) Medium if 100 ≤ x < 200 

3) Hard if 200 ≤ x ≤ 300 

Find the category to which Chef’s problem belongs.

------ Input Format ------ 

- The first line contains T denoting the number of test cases. Then the test cases follow.
- The first and only line of each test case contains a single integer x.

------ Output Format ------ 

For each test case, output in a single line the category of Chef's problem, i.e whether it is an Easy, Medium or Hard problem. The output is case sensitive.

------ Constraints ------ 

$1 ≤ T ≤ 50$
$1 ≤ x ≤ 300$

------ subtasks ------ 

Subtask 1 (100 points): Original constraints

----- Sample Input 1 ------ 
3
50
172
201

----- Sample Output 1 ------ 
Easy
Medium
Hard

----- explanation 1 ------ 
Test case $1$: The problem with rating $x = 50$ is an easy problem as $1 ≤ 50 < 100$.

Test case $2$: The problem with rating $x = 172$ is a medium problem as $100 ≤ 172 < 200$.

Test case $3$: The problem with rating $x = 201$ is a hard problem as $200 ≤ 201 ≤ 300$.

Source: codechef | Difficulty: EASY
Tags: Mathematics

Ad-hoc


Solutions:
for i in range(int(input())):
	x = int(input())
	if 1 <= x < 100:
		print('Easy')
	elif 100 <= x < 200:
		print('Medium')
	elif 200 <= x <= 300:
		print('Hard')


for i in range(int(input())):
	x = int(input())
	if x >= 1 and x < 100:
		print('Easy')
	elif x >= 100 and x < 200:
		print('Medium')
	else:
		print('Hard')


t = int(input())
for i in range(t):
	N = int(input())
	if 1 <= N < 100:
		print('Easy')
	elif 100 <= N < 200:
		print('Medium')
	else:
		print('Hard')


for i in range(int(input())):
	n = int(input())
	if 1 <= n and n < 100:
		print('Easy')
	elif n >= 100 and n < 200:
		print('Medium')
	elif n >= 200 and n <= 300:
		print('Hard')


n = int(input())
for _ in range(n):
	num = int(input())
	if num >= 1 and num < 100:
		print('Easy')
	elif num >= 100 and num < 200:
		print('Medium')
	else:
		print('Hard')


for i in range(int(input())):
	a = int(input())
	if a in range(1, 100):
		print('Easy')
	elif a in range(100, 200):
		print('Medium')
	else:
		print('Hard')


r = int(input())
for item in range(r):
	if 1 <= r <= 50:
		x = int(input())
		if 1 <= x <= 300:
			if 1 <= x < 100:
				print('Easy')
			if 100 <= x < 200:
				print('Medium')
			if 200 <= x <= 300:
				print('Hard')


t = int(input())
for i in range(t):
	x = int(input())
	if x < 100:
		print('Easy')
	elif x < 200:
		print('Medium')
	else:
		print('Hard')


for i in range(int(input())):
	b = int(input())
	if b < 100:
		print('Easy')
	elif b < 200 and b >= 100:
		print('Medium')
	else:
		print('Hard')


for _ in range(int(input())):
	diff = int(input())
	if diff >= 1 and diff < 100:
		print('Easy')
	elif diff >= 100 and diff < 200:
		print('Medium')
	elif diff >= 200 and diff <= 300:
		print('Hard')


a = int(input(''))
for t in range(0, a):
	x = int(input(''))
	if x >= 1 and x < 100:
		print('Easy')
	elif x >= 100 and x < 200:
		print('Medium')
	elif x >= 200 and x <= 300:
		print('Hard')


def PC(x):
	if x in range(1, 100):
		print('Easy')
	elif x in range(100, 200):
		print('Medium')
	else:
		print('Hard')
t = int(input())
for i in range(t):
	a = int(input())
	ans = PC(a)


t = int(input())
i = 1
while i <= t:
	x = int(input())
	if 1 <= x < 100:
		print('Easy')
	elif 100 <= x < 200:
		print('Medium')
	else:
		print('Hard')
	i += 1


def code():
	cases = int(input())
	for _ in range(cases):
		x = int(input())
		level = ''
		if x >= 1 and x < 100:
			level = 'Easy'
		if x >= 100 and x < 200:
			level = 'Medium'
		if x >= 200 and x <= 300:
			level = 'Hard'
		print(level)
code()


for _ in range(int(input())):
	x = int(input())
	if x < 100:
		print('Easy')
	elif x < 200:
		print('Medium')
	elif x <= 300:
		print('Hard')


T = int(input())
for i in range(T):
	X = int(input())
	if 1 <= X < 100:
		print('Easy')
	elif 100 <= X < 200:
		print('Medium')
	elif 200 <= X <= 300:
		print('Hard')


T = int(input())
for _ in range(T):
	x = int(input())
	if 1 <= x < 100:
		print('Easy')
	elif 100 <= x < 200:
		print('Medium')
	else:
		print('Hard')