let n = read_int () in
if List.exists (fun x -> x = n mod 10) [2;4;5;7;9] then
  print_endline "hon"
else if List.exists (fun x -> x = n mod 10) [0;1;6;8] then
  print_endline "pon"
else
  print_endline "bon"
