defmodule Main do
  def main do
    case IO.gets("") |> String.trim() |> String.to_integer() |> Integer.digits() |> List.last() do
      2 ->
        IO.puts("hon")

      4 ->
        IO.puts("hon")

      5 ->
        IO.puts("hon")

      7 ->
        IO.puts("hon")

      9 ->
        IO.puts("hon")

      0 ->
        IO.puts("pon")

      1 ->
        IO.puts("pon")

      6 ->
        IO.puts("pon")

      8 ->
        IO.puts("pon")

      3 ->
        IO.puts("bon")
    end
  end
end