Each item in Chef’s menu is assigned a spice level from 1 to 10. Based on the spice level, the item is categorised as:
MILD: If the spice level is less than 4.
MEDIUM: If the spice level is greater than equal to 4 but less than 7.
HOT: If the spice level is greater than equal to 7.

Given that the spice level of an item is X, find the category it lies in.

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

- The first line of input will contain a single integer T, denoting the number of test cases.
- Each test case consists of an integer X — the spice level of the item.

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

For each test case, output on a new line, the category that the item lies in.

You may print each character in uppercase or lowercase. For example, HOT, hot, Hot, and hOT are all considered the same.

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

$1 ≤ T ≤ 1000$
$1 ≤ X ≤ 10$

----- Sample Input 1 ------ 
4
4
1
6
9

----- Sample Output 1 ------ 
MEDIUM
MILD
MEDIUM
HOT

----- explanation 1 ------ 
Test case $1$: The spice level is greater than $4$ but less than $7$. Thus, it is in MEDIUM category.

Test case $2$: The spice level is less than $4$. Thus, it is in MILD category.

Test case $3$: The spice level is greater than $4$ but less than $7$. Thus, it is in MEDIUM category.

Test case $4$: The spice level is greater than $7$. Thus, it is in HOT category.

Source: codechef | Difficulty: EASY


Solutions:
for i in range(int(input())):
	x = int(input())
	if x < 4:
		print('MILD')
	elif x >= 4 and x < 7:
		print('MEDIUM')
	else:
		print('HOT')


for i in range(int(input())):
	a = int(input())
	if a < 4:
		print('MILD')
	if 4 <= a < 7:
		print('MEDIUM')
	if a >= 7:
		print('HOT')


T = int(input())
for tc in range(T):
	n = int(input())
	if n < 4:
		print('MILD')
	elif n >= 4 and n < 7:
		print('MEDIUM')
	else:
		print('HOT')


a = int(input())
for i in range(a):
	p = int(input())
	if 4 <= p < 7:
		print('MEDIUM')
	elif p < 4:
		print('MILD')
	else:
		print('HOT')


t = int(input())
for i in range(t):
	a = int(input())
	if a < 4:
		print('MILD')
	elif a >= 4 and a < 7:
		print('MEDIUM')
	elif a >= 7:
		print('HOT')


a = int(input())
for i in range(a):
	a1 = int(input())
	if 7 > a1 >= 4:
		print('MEDIUM')
	elif a1 < 4:
		print('MILD')
	elif a1 >= 7:
		print('HOT')
	else:
		pass


n = int(input())
for i in range(n):
	l = int(input())
	if l >= 4 and l < 7:
		print('MEDIUM')
	elif l >= 7:
		print('HOT')
	else:
		print('MILD')


t = int(input())
for _ in range(t):
	n = int(input())
	if n >= 4 and n < 7:
		print('MEDIUM')
	elif n < 4:
		print('MILD')
	else:
		print('HOT')


T = int(input())
for t in range(T):
	X = int(input())
	if X < 4:
		print('MILD')
	elif X >= 4 and X < 7:
		print('MEDIUM')
	else:
		print('HOT')


t = int(input())
for i in range(t):
	X = int(input())
	if X < 4:
		print('MILD')
	elif 4 <= X < 7:
		print('MEDIUM')
	else:
		print('HOT')


for _ in range(int(input())):
	x = int(input())
	if x < 4:
		print('MILD')
	elif x >= 4 and x < 7:
		print('MEDIUM')
	elif x >= 7:
		print('HOT')


import math
for t in range(int(input())):
	x = int(input())
	if x < 4:
		print('MILD')
	elif x >= 4 and x < 7:
		print('MEDIUM')
	else:
		print('HOT')


t = int(input())
while t:
	x = int(input())
	print('MILD' if x < 4 else 'MEDIUM' if x >= 4 and x < 7 else 'HOT')
	t -= 1


T = int(input())
for i in range(T):
	A = int(input())
	if A < 4:
		print('MILD')
	elif A >= 4 and A < 7:
		print('MEDIUM')
	elif A >= 7:
		print('HOT')


i = int(input(''))
j = 0
while j < i:
	x = int(input(''))
	if x < 4:
		op1 = 'MILD'
	elif x >= 7:
		op1 = 'HOT'
	else:
		op1 = 'MEDIUM'
	j += 1
	print(op1)


for i in range(int(input())):
	num = int(input())
	if num < 4:
		print('MILD')
	elif num >= 4 and num < 7:
		print('MEDIUM')
	elif num >= 7:
		print('HOT')


def categorize_spice_level(spice_level):
	if spice_level < 4:
		return 'MILD'
	elif spice_level < 7:
		return 'MEDIUM'
	else:
		return 'HOT'
t = int(input())
for i in range(t):
	spice_level = int(input())
	category = categorize_spice_level(spice_level)
	print(category)


number = int(input())
for i in range(number):
	a = int(input())
	if a < 4:
		print('MILD')
	elif a >= 4 and a < 7:
		print('MEDIUM')
	else:
		print('HOT')


T = int(input())
for i in range(T):
	n = int(input())
	if n >= 7:
		print('HOT')
	elif 4 <= n < 7:
		print('MEDIUM')
	else:
		print('MILD')