def main():
  a = int(input())
  x = a % 10
  
  if x == 2 or 4 or 5 or 7 or 9:
    print('hon')
    return
  elif x == 0 or 1 or 6 or 8:
    print('pon')
    return
  else:
    print('bon')
  
main()