const Main = ipt => {
  const c = ipt.slice(-1);
  switch(c) {
    case '2':
    case '4':
    case '5':
    case '7':
    case '9':
      console.log('hon')
      return;
    case '0':
    case '1':
    case '6':
    case '8':
      console.log('pon')
      return;
    case '3':
      console.log('bon')
      return;
  }
};

Main(require('fs').readFileSync('/dev/stdin', 'utf8').trim())

//Main(``)
