"use strict";

const main = arg => {
  	let a = arg.slice(-1);
	if(a==="3"){
      console.log("bon");
    }else if(a==="0" || a==="1" || a==="6" || a==="8"){
      console.log("pon")
    }else{
      console.log("hon")
    }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));  