"use strict";
function main(input) {
    const line = input.split("\n");
    let a = line[0];
   a = parseInt(a[a.length-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'));
//main(require('fs').readFileSync('input.txt', 'utf8'));