num=input()
one=num[len(num)-1]
if one=="2" or one=="4" or one=="5" or one=="7" or one=="9":
    print("hon")
elif one=="0" or one=="1" or one=="6" or one=="8":
    print("pon")
else:
    print("boon")