open System

let n = Console.ReadLine() |> int

let ans =
    match n % 10 with
    | 2
    | 4
    | 5
    | 7
    | 9 -> "hon"
    | 0
    | 1
    | 6
    | 8 -> "pon"
    | _ -> "bon"

ans |> Console.WriteLine