N=input()

hon = [2,4,5,7,9]
pon = [0,1,6,8]
bon = [3]

for i in range(5):
  if(N[-1] == hon[i]):
    print("hon")

for i in range(4):
  if(N[-1] == pon[i]):
    print("pon")

if(N[-1] == bon[0]):
  print("bon")

