open System

let flip f a b = f b a

[<EntryPoint>]
let main _ =
    Console.ReadLine()
    |> int
    |> flip (%) 10
    |> fun n ->
        match n with
        | 0 | 1 | 6 | 8 -> "pon"
        | 3 -> "bon"
        | _ -> "hon"
    |> printfn "%s"
        
    0 
