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

const value = input.trim().split("\n")
const str = value.toString();

const hon = [2, 4, 5, 7, 9]
const pon = [0, 1, 6, 8]
const bon = 3
 
const t = parseInt(str[str.length - 1], 10);

if (hon.includes(t)) {
  console.log('hon')
} else if (pon.includes(t)) {
  console.log('pon')
} else if (t === 3) {
  console.log('bon')
}