import * as fs from 'fs';
 
const input = fs.readFileSync("/dev/stdin", "utf8").toString();

const fp = input[input.length - 1];
 
if(new Set(['2', '4', '5', '7', '9']).has(fp)) {
  console.log('hon');
}else if(new Set(['0', '1', '6', '8']).has(fp)) {
  console.log('pon');
} else {
  console.log('bon');
}