defmodule Main do
  def main do
    a=%{0=>"pon",1=>"pon",2=>"hon",3=>"bon",4=>"hon",5=>"hon",6=>"pon",7=>"hon",8=>"pon",9=>"hon"}
    IO.gets("") |> String.trim |> String.to_integer
    |>Integer.mod(10)
    |>(fn x-> IO.puts(a[x]) end).()
  end
end
