function main(lines) {
    let input = lines.split('')
    let lastNumber = input[input.length-1]
    if(lastNumber == 2 || lastNumber == 4 || lastNumber == 5 || lastNumber == 7 || lastNumber == 9){
        console.log('hon')
    } else if (lastNumber == 3) {
        console.log('bon')
    } else if(lastNumber == 0 || lastNumber == 1 || lastNumber == 6 || lastNumber == 8) {
        console.log('pon')
    }
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
