n = input()

if n[-1:] == str(2) or  n[-1:] ==  str(4) or  n[-1:] == str(7) or  n[-1:] == str(9):
  print('hon')
if (n[-1:]) == str(0) or  n[-1:] == str(1) or  n[-1:] == str(6) or  n[-1:] == str(8):
  print('bon')
if (n[-1:]) == str(3):
  print('pon')