N = int(input())

S = str(N)

H = (S[-1])

if H == 0:
     print("pon")

elif H == 1:
     print("pon")

elif H == 2:
     print("hon")

elif H == 3:
     print("bon")

elif H == 4:
     print("hon")

elif H == 5:
     print("hon")

elif H == 6:
     print("pon")

elif H == 7:
     print("hon")

elif H == 8:
     print("pon")

else:
     print("hon")