program ABC168A
    implicit none
    integer(8)::N
    read*,N
    if(mod(N,10)==3)then
        print'(A)',"bon"
    else if(mod(N,10)==0.or.mod(N,10)==1.or.mod(N,10)==6.or.mod(N,10)==8)then
        print'(A)',"pon"
    else
        print'(A)',"hon"
    end if
end program ABC168A