program main
    implicit none
    character n*3
    integer i
    read(*,*) n
    i = len_trim(n)

    if (n(i:i) == "0") then
        write(*,*) "pon"
    else if (n(i:i) == "1") then
        write(*,*) "pon"
    else if (n(i:i) == "2") then
        write(*,*) "hon"
    else if (n(i:i) == "3") then
        write(*,*) "bon"
    else if (n(i:i) == "4") then
        write(*,*) "hon"
    else if (n(i:i) == "5") then
        write(*,*) "hon"
    else if (n(i:i) == "6") then
        write(*,*) "pon"
    else if (n(i:i) == "7") then
        write(*,*) "hon"
    else if (n(i:i) == "8") then
        write(*,*) "pon"
    else if (n(i:i) == "9") then
        write(*,*) "hon"
    end if

end program