open System

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