const main = input => {
  const hon = [2,4,5,7,9]
  const pon = [0,1,6,8]
  const n = Number(Number(input).toFixed().slice(-1))
  return hon.includes(n) ? "hon" : pon.includes(n) ? "pon" : "bon"
}
console.log(main(require('fs').readFileSync('/dev/stdin', 'utf8')))