import * as fs from 'fs';

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

const fp = input.slice(-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');
}