import * as fs from 'fs';

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

const fp = input.slice(-1);

if([2,4,5,7,9].includes(parseInt(fp))) {
  console.log('hon');
}else if([0,6,1,8].includes(parseInt(fp))) {
  console.log('pon');
else {
  console.log('bon');
}