let w, h, x, y = Scanf.scanf " %d %d %d %d" @@ fun a b c d -> a, b, c, d
let _ =
  if x * 2 = w || y * 2 = h || x = 0 || y = 0 then
    (Printf.printf "%.12f " @@ float w *. float h /. 2.;
    print_endline @@ if x * 2 = w && y * 2 = h then "1" else "0")
  else
    Printf.printf "%.12f 0\n" @@ float @@ max (min x (w - x) * h) (min y (h - y) * w)