const main = input => {
  const [[N]] = input

  const _ = N.slice(-1)

  if (['2', '4', '5', '7', '9'].includes(_)) return [['hon']]
  if (['0', '1', '6', '8'].includes(_)) return [['pon']]

  return [['bon']]
}

const wrapper = data => {
  const input = data.split('\n').map(line => line.split(' '))
  const output = main(input)
  console.log(output.map(line => line.join(' ')).join('\n'))
}

wrapper(require('fs').readFileSync('/dev/stdin', 'utf8'))
