const input = require("fs").readFileSync("/dev/stdin", "utf8")
const lines = input.split('\n')
const N = lines[0] - 0

const u = [
  'pon',
  'pon',
  'hon',
  'bon',
  'hon',
  'hon',
  'pon',
  'hon',
  'pon',
  'hon'
]

console.log(u[N % 10])