var input = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n')
var n = parseInt(input[0].substr(-1))
var ans = (function() {
  if (n == 3) {
    return 'bon'
  }
  else if (n === 0 || n == 1 || n == 6 || n == 8) {
    return 'pon'
  }
  return 'hon'
})()
console.log(ans)
