open System

let n = (stdin.ReadLine() |> int) % 10

let yomi =
    if n = 3 then
        "bon"
    else if List.exists ((=) n) [0; 1; 6; 8] then
        "pon"
    else
        "hon"

printfn "%s" yomi
