const l = {
  'hon': [2, 4, 5, 7, 9],
  'pon': [0, 1, 6, 8],
  'bon': [3]
}

const processData = (lines) => {
  const n = lines[0]
  const t = +n[n.length -1]
  for (let p in l) {
    if (l[p].includes(t)) {
      console.log(p)
      break
    }
  }
}

let i = ''
process.stdin.on('data', c => i += c)
process.stdin.on('end', () => {
  const {EOL} = require('os')
  const lines = i.split(EOL) /*your input text, split by lines*/
  processData(lines)
})
