def main():
  N = int(input())

  d = N % 10

  if(d == 2 or d == 4 or d == 7 or d == 9):
    print("hon")
  elif(d == 0 or d == 1 or d == 6 or d == 8):
    print("pon")
  elif(d == 3):
    print("bon")
  

if __name__ == "__main__":
  main()