function Main(input) {
    input = input.split("\n");
    tmp = input[0].split(" ");
    var a = parseInt(input[0], 10)

    if ([2,4,5,7,9].indexOf(a)>=0) {
    	console.log("hon")
    }else if([0,1,6,8].indexOf(a)>=0) {
    	console.log("pon")
    }else{
    	console.log("bon")
    }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));