# Getting multiple choice input

choosing = True
while choosing:
    a = raw_input("Enter h or t: ")
    choosing = not (a == "h" or a == "t")
print "You chose ",a
