<?php
$N = fgets(STDIN);
$array1 = [2, 4, 5, 7, 9];
$array2 = [0, 1, 6, 8];
if($N == 3) {
  	echo "bon";
} elseif(in_array($N, $array2)) {
	echo "pon";
} elseif(in_array($N, $array1)) {
  	echo "hon";
}

  
?>