<?php

fscanf(STDIN, "%d", $num);
$single_num = substr($num, 2, 1);
if (
    $single_num == '2' || $single_num == '4' || $single_num == '5'
    || $single_num == '7' || $single_num == '9'
) {
    echo 'hon';
} elseif (
    $single_num == '0' || $single_num == '1' || $single_num == '6' || $single_num == '8'
) {
    echo 'pon';
} else {
    echo 'bon';
}