N = int(input())
hon=[2,4,5,7,9]
pon=[0,1,6,8]
bon=[3]

if N < 10:
  if N in hon:
    print('hon')
  elif N in pon:
    print('pon')
  else:
    print('bon')
elif N < 100:
  amari=N%10
  if amari in hon:
    print('hon')
  elif amari in pon:
    print('pon')
  else:
    print('bon')
else:
  amari=N%100
  if amari in hon:
    print('hon')
  elif amari in pon:
    print('pon')
  else:
    print('bon')
