program main
  implicit none
  integer i, N, ans1
  !character(11) S, T
  read(*, *) N
  i = mod(N,10)
  if (i == 0) then
    write(*, *) 'pon'
  elseif (i == 1) then
    write(*, *) 'pon'
  elseif (i == 6) then
    write(*, *) 'pon'
  elseif (i == 8) then
    write(*, *) 'pon'
  elseif (i == 3) then
    write(*, *) 'bon'
  else
    write(*, *) 'hon'
  end if
   
  
  !write(*, *)
end program main
