a= str(input())
b = a[-1]
print(b)
b = int(b)
if b == 3:
    print("bon")
elif b == 0 :
    print("pon")
elif b == 1 :
    print("pon")
elif b == 6 :
    print("pon")
elif b == 8 :
    print("pon")
else:
    print("hon")
