n = str(input())
if n[-1] == "2" and n[-1] == "4" and n[-1] == "5" and n[-1] == "7" and n[-1] == "9":
    print("hon")
elif n[-1] == "0" and n[-1] == "1" and n[-1] == "6" and n[-1] == "8":
    print("pon")
else:
    print("bon")