#N, M = map(int, input().split())
#A = list(map(int, input().split()))
#S = str(input())
N = str(input())
hon = [2, 4, 5, 7, 9]

#print(N[-1])

if N[-1] in hon:
  print("hon")
elif N[-1] == str(3):
  print("bon")
else:
  print("pon")