<?php
  
  $hon = array("2", "4", "5", "7", "9");
  $pon = array("0", "1", "6", "8");
  
  $a = fgets(STDIN);
$l =strlen($a);
$ans = $a[$l-1];
if (in_array($ans, $hon)) {
    echo "hon";
}
else if (in_array($ans, $pon)) {
    echo "pon";
}
else {
    echo "bon"; 
}