let () =
  Scanf.scanf "%d\n" @@ fun d ->
  let n = d mod 10 in
  let ans =
    if n = 3 then "bon "
    else if n = 0 || n = 1 || n = 6 || n = 8 then "pon "
    else "hon " in
  Printf.printf "%s\n" ans