<?php
  fscanf(STDIN, "%d", $N);
 $arr = str_split($N);
$num=strlen($arr);
if($arr[$num]=="3"){
  echo "bon";
}elseif($arr[$num]==0||$arr[$num]==1||$arr[$num]==6||$arr[$num]==8 ){
  echo "pon";
}else{
echo "hon";
}
?>