// AUTHOR:: MOHAMAMD FAISAL

"use strict";

const main = (input) =>{
  
  //const arr = input.trim().split("");
//  const firstplace = arr[arr.length -1];
  const firstplace = input%10;
  
  if(firstplace ==3)
    console.log("bon");
  else if(firstplace==0 || firstplace==1 || firstplace==6 || firstplace==8)
    console.log("pon");
  else
    console.log("hon");
};
  
main(require("fs").readFileSync("/dev/stdin","utf8"));
