l=input().split() d=[l.count(i)for i in set(l)] if d.count(3):print("TFHURLELE HCOAURSDE"[d.count(2)::2]) elif x:=d.count(2):print(" OTNWEO PPAAIIRR"[x::2]) else:print("NO HAND")