n = int(input())
if 0<=n<=9:
  if n == 3:
    print('bon')
  elif n == 0 or 6 or 8:
    print('pon')
  else:
    print('hon')
if 10<=n<=99:
  a = n%10
  if a == 3:
    print('bon')
  elif a == 0 or 6 or 8:
    print('pon')
  else:
    print('hon')
if 100<=n<=999:
  a = (n%10)%10
  if n == 3:
    print('bon')
  elif n == 0 or 6 or 8:
    print('pon')
  else:
    print('hon')