open System

let W,H,x,y=stdin.ReadLine().Split()|>Array.map double|>fun c -> double c.[0],double c.[1],double c.[2],double c.[3]
[<EntryPoint>]
let main argv =
    if (x=(W/2.0))&&(y=(H/2.0)) then 1 else 0
    |>printfn "%f %d" (H*W/2.0)
    0