defmodule Main do
  def main do
    n = IO.gets("") |> String.trim() |> String.to_integer()

    ans =
      case rem(n, 10) do
        3 -> "bon"
        0 -> "pon"
        1 -> "pon"
        6 -> "pon"
        8 -> "pon"
        _ -> "hon"
      end

    IO.puts(ans)
  end
end
