N=list(input())

N=N[::-1]

if N[0]==("2" or "4" or "5" or "7" or "9"):
    print("hon")
    break
else:
    pass
if N[0]==("0" or "1" or "6" or "8"):
    print("pon")
    break
else:
    pass
if N[0]=="3":
    print("bon")
    break
else:
    pass
