const input = require("fs").readFileSync("/dev/stdin", "utf8");

const hon = [2, 4, 5, 7, 9]
const pon = [0, 1, 6, 8]
const bon = 3

const t = input.toString().slice(-1)
if (hon.includes(parseInt(t)) {
  console.log('hon');
  return;
} else if (pon.includes(parseInt(t)) {
  console.log('pon')
  return
} else {
  console.log('bon')
}
