open Batteries

let () = 
        Scanf.sscanf (read_line ()) "%d" (
        fun n -> 
                let a = n mod 10 in
                        if a = 2 || a = 4 || a = 5 || a = 7 || a = 9 then
                                "hon"
                        else if a = 0 || a = 6 || a = 1 || a = 8 then
                                "pon"
                        else
                                "bon"
        ) |> Printf.printf "%s\n"
