fork download
  1. t=int(input())
  2. temp=[]
  3. for _ in range(t):
  4. x=int(input())
  5. temp.append(x)
  6. re=[]
  7. for te in temp:
  8. if(te>20):
  9. re.append("hot")
  10. else:
  11. re.append("cold")
  12. for r in re:
  13. print(r)
  14.  
Success #stdin #stdout 0.04s 9780KB
stdin
2
21
16
stdout
hot
cold