let pronounce n =
  if n mod 10 = 3 then "bon"
  else if n mod 10 = 0 || n mod 10 = 1 || n mod 10 = 6 || n mod 10 = 8 then "pon"
  else "hon"

let () = Scanf.scanf "%d" (fun n -> Printf.printf "%s\n" (pronounce n))