let () =
    let main () =
        let w, h, x, y = Scanf.sscanf (read_line ()) "%d %d %d %d" (fun w h x y -> w, h, x, y) in
        let x0 = w - x in
        let y0 = h - y in
        Printf.printf "%.9f %d\n" (float (w * h) /. 2.0) (if x0 = x && y0 = y then 1 else 0)
    in
    main ()