local w,h,x,y=io.read("*n","*n","*n","*n")
local tate=math.min(x*h,(w-x)*h)
local yoko=math.min(y*w,(h-y)*w)
local tatemax=(w//2)*h
local yokomax=(h//2)*w

tate=tate+(tatemax-tate)/2
yoko=yoko+(yokomax-yoko)/2
local max=string.format("%.10f",math.max(tate,yoko))
print(max,tate==yoko and 1 or 0)