N = int(input())
hon = ['2', '3', '4', '7', '9']
pon = ['0', '1',  '6', '8']
bon = '3'
N = str(N)
check = N[-1]
if check == bon:
    print("bon")
elif check in hon:
    print("hon")
elif check in pon:
    print("pon")
