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

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