import sys,math
input = sys.stdin.readline

N = input()

if N[len(N)-1] == '3':
  print('bon')
elif N[len(N)-1] == '2'or N[len(N)-1] == '4'or N[len(N)-1] == '5' or N[len(N)-1] == '7' or N[len(N)-1] == '9':
  print('hon')
else:
  print('pon')