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

    w=real(w,8)
    h=real(h,8)
    ans=w*h/2.0_8
    write(*,*) ans,0
    stop


end program kadai
