let () = Scanf.scanf "%d %d %d %d" @@ fun w h x y ->
  if w = 2 * x && h = 2 * y then Printf.printf "%d 1" @@ w * h / 2
  else begin
    let s1 = h * min x (w - x) in
    let s2 = w * min y (h - y) in
    Printf.printf "%d %d" (max s1 s2) (if s1 = s2 then 1 else 0)
  end