let n = Scanf.sscanf (read_line ()) "%d" @@ fun n -> n

let () =
  let a = n mod 10 in
  if a = 2 || a = 4 || a = 5 || a = 7 || a = 9 then
    print_endline "hon"
  else if a = 0 || a = 1 || a = 6 || a =8 then
    print_endline "pon"
  else
    print_endline "bon"