#入力
N = int.input()
#出力
if N % 10 == 3:
  print('bon')
elif N % 10 == 1:
  print('pon')
elif N % 10 == 6:
  print('pon')
elif N % 10 == 8:
  print('pon')
elif N % 10 == 0:
  print('pon')
else:
  print('hon')