<?php
$number= trim(fgets(STDIN));

$last_number= substr($number,-1,1);

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

?>