<?php 
// ABC168 - A 
    fscanf(STDIN, "%s", $n);

    $ones_place = substr($n, -1);
    if($$ones_place == 2 || $$ones_place == 4 || $$ones_place == 5 || $$ones_place == 7 || $$ones_place == 9){
        echo "hon";
    } else if ($$ones_place == 0 || $$ones_place == 1 || $$ones_place == 6 || $$ones_place == 8){
        echo "pon";
    } else if ($$ones_place == 3){
        echo "bon";
    };

?>