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