function Main(input) {
	var str = input;
	str = str.split("\n");
	var l = str[0].split(" "); 
	l.map( str => parseInt(str, 10) );
	l= l%10;
	if(l === 2|| l === 4|| l === 5|| l === 7|| l ===9){
		console.log("hon");
	}else if (l === 0||l === 1||l === 6||l ===8){
		console.log("pon");
	}else{
		console.log("bon");
	}
}
 //*おまじない
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
