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)
dD1pbnQoaW5wdXQoKSkKdGVtcD1bXQpmb3IgXyBpbiByYW5nZSh0KToKICAgIHg9aW50KGlucHV0KCkpCiAgICB0ZW1wLmFwcGVuZCh4KQpyZT1bXQpmb3IgdGUgaW4gdGVtcDoKICAgIGlmKHRlPjIwKToKICAgICAgICByZS5hcHBlbmQoImhvdCIpCiAgICBlbHNlOgogICAgICAgIHJlLmFwcGVuZCgiY29sZCIpCmZvciByIGluIHJlOgoJcHJpbnQocikK