'use strict'

const Main = (input) => {
  const N = input.trim()

  const F = N.split('')[N.length - 1]

  let result = 'hon'

  if (F === '0' || F === '1' || F === '6' || F === '8') {
    result = 'pon'
  } else if (F === '3') {
    result = 'bon'
  }

  console.log(result)
  return result
}

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