program kadai
implicit none
integer  ::  w,h,x,y
real(8)  ::  ans
real(8)  ::  down,up,left,right

read(*,*) w,h,x,y

if (mod(h,2)==0 .and. y==h/2) then
    w=real(w,8)
    h=real(h,8)
    ans=w*h/2.0_8
    if (mod(w,2)==0 .and. x==w/2) then
        write(*,*) ans,1
        stop
    end if
    write(*,*) ans,0
    stop
end if

if (mod(w,2)==0 .and. x==w/2) then
    w=real(w,8)
    h=real(h,8)
    ans=w*h/2.0_8
    write(*,*) ans,0
    stop
end if

x=real(x,8)
w=real(w,8)
h=real(h,8)
y=real(y,8)
down=x-(w-2.0_8*x)*y/(h-2.0_8*y)
up=x-(w-2.0_8*x)*(h-y)/(h-2.0_8*y)
if (down<=w) then
    ans=(up+down)*h/2.0_8
    if (ans>w*h/2.0_8) then
        ans=w*h/2.0_8-ans
    end if
    write(*,*) ans,0
    stop
end if

if (down>w) then
    right=y+(h-2.0_8*y)*(w-x)/(w-2.0_8*x)
    left=y-(h-2.0_8*y)*x/(w-2.0_8*x)
    ans=w*(right+left)/2.0_8
    if (ans>w*h/2.0_8) then
        ans=w*h/2.0_8-ans
    end if
    write(*,*) ans,0
    stop
end if

end program kadai