// parameter "input" gets all data
function Main(input) {
 // the first line is assigned to input[0], the second line is assigned to input[1] similarly.
 input = input.split("\n");
 tmp = input[1].split(" ");
 // convert string from integer using "parseInt"
 var a = parseInt(input[0], 10);
 var s = ''
 a= a % 10
  switch(a){
    case 2:
            case 4:
            case 5:
            case 7:
            case 9:
          s = 'pon'
       break; // 可选的
      case 0:
            case 1:
            case 6:
            case 8:
       s ='hon'
       break; // 可选的
    case 3:
        s='bon'
       break; // 可选的
 
}
 //output
 console.log(s)
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
