import sys
import math
m = input()
n= int(m)
a=math.floor(n/100)
n=n-a*100
b=math.floor(n/10)
n=n-b*10
if n==2 or 4 or 5 or 7 or 9:
    print("hon")
elif n==0 or 1 or 6 or 8:
    print("pon")
elif n==3:
    print("bon")