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 wa = x * h in
        let wb = (w - x) * h in
        let ha = y * w in
        let hb = (h - y) * w in
        let ww = if x = 0 then wb else if x = w then wa else min wa wb in
        let hh = if y = 0 then hb else if y = h then ha else min ha hb in
        if ww = hh then Printf.printf "%.9f 1\n" (float ww) else
            Printf.printf "%.9f 0\n" (float (max ww hh))
    in
    main ()