t=int(input())
temp=[]
for _ in range(t):
    x=int(input())
    temp.append(x)
re=[]
for te in temp:
    if(te>20):
        re.append("hot")
    else:
        re.append("cold")
for r in re:
	print(r)
