process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = []
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

reader.on('line', (line) => {
  lines.push(line);
});

reader.on('close', () => {
 var n = lines[0].split('');
 var len = n.length;
 var ans = "";
 n = Number(n[len-1]);

 if (n == 2 || n == 7 || n == 4 || n == 5 || n == 9) {
   ans = 'hon';
 }else if(n == 0 || n == 1 || n == 6 || n == 8){
   ans = 'pon';
 }else if(n == 3){
   ans = "bon";
 }

 console.log(ans);
});