function main(input){
	const N = input.split('');
  	var M;
  if (N[2]) {
    M = N[2];
  } else if (N[1]) {
    M = N[1];
  } else {
    M = N[0];
  }
  if (M == 3) {
    console.log("bon");
  } else if (M == 0 || M == 1 || M == 6 || M == 8) {
    console.log("pon");
  } else {
    console.log("hon");
  }
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));