function main(input) {
	let a = input[input.length - 1];
  	console.log(
    	a === "3"
      	? "bon"
      	: a === "0" || a === "1" || a === "6" || a === "8"
      	? "pon"
      	: "hon"
    );  
}

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