fs = require('fs');
input = fs.readFileSync('/dev/stdin','utf-8');
N = input.split('\n');
let r;
let c = N % 10;
if(c == '2' || c == '4' || c == '5' || c == '7' || c == '9') {
  console.log('hon');
} else if(c == '3') {
  console.log('bon');
} else {
  console.log('pon');
}
