main = do
    n <- getLine
    let c = last n
    let s = 
            if c == '3'
                then "bon"
            else if elem c "0168"
                then "pon"
                else "hon"
    putStrLn s
