<?php
$input = trim(fgets(STDIN));
$length = strlen($input);

for($i=1; $i <= $length; $i++){
    if ($length == 3){
        $num =  substr($input, 2);
    } elseif ($length == 2){
        $num =  substr($input, 1);
    } else {
        $num =  $input;
    }
}

if($num == 3 ){
    echo "bon";
} elseif($num == 0 || $num = 1 || $num == 6 || $num == 8){
    echo "pon";
}else{
    echo "hon";
}

?>