<?php
	$num = str_split(trim(fgets(STDIN)));

	if($num[0] == 2 || $num[0] == 4 || $num[0] == 5 || $num[0] == 7 ||
       $num[0] == 9){
    	echo "hon";
    }elseif($num[0] == 0 || $num[0] == 1 || $num[0] == 6 || $num[0] == 8){
    	echo "pon";
    }else{
    	echo "bon";
    }
  
?>