import math

n = input()

if n[len(n)] == 3:
  print("bon")
elif n[len(n)] == 0 or n[len(n)] == 1 or n[len(n)] == 0 or  n[len(n)] == 6 or n[len(n)] == 8:
  print("pon")
else:
  print("hon")

if n == math.inf:
  print("a")
