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