N = int(input())
def x(N):
  return N%10
    if x=2 or x=4 or x=5 or x=7 or x=9:
      return print("hon")
    elif x=0 or x=1 or x=6 or x=8:
      return print("pon")
    else:
      return print("bon")