inp = require('fs').readFileSync('/dev/stdin', 'utf8').trim().split('\n')
N = inp.shift() * 1
n = N % 10
if (n == 3) {
    a = "bon"
} else if ([0,1,6,8].indexOf(n) >= 0) {
    a = "pon"
} else {
    a = "hon"
}
console.log(a)