program prob3
    implicit none
    integer(8)::W, H, x, y
    real(16):: xm,ym, ans
    read(*,*) W, H, x, y
    xm = real(W,kind=16)/2.0_16
    ym = real(H,kind=16)/2.0_16

    ans = real(H*W,kind=16)/2.0_16
    if(mod(W,2)==0 .and. mod(H,2)==0)then
        if(x == W/2 .and. y == H/2)then
            write(*,*) ans, 1
            stop
        end if
    end if

    write(*,*) ans,0

    stop
end program