<?php

$N = fgets(STDIN);

$N_1 = substr($N, -1);

if ($N_1 == 2 || $N_1 == 4 || $N_1 == 5 || $N_1 == 7 || $N_1 == 9) {
  echo 'bon';
} elseif ($N_1 == 0 || $N_1 == 1 || $N_1 == 6 || $N_1 == 8) {
  echo 'pon';
} elseif ($N_1 == 3) {
  echo 'hon'; 
}