program main
integer N,I
character H*3
read *, N
I = mod(N,10)
Select case(I)
	case(2,4,5,7,9)
    	H = 'hon'
    case(0,1,6,8)
		H = 'pon'
    case(3)
    	H = 'bon'
end select
print '(A)',H
end program main