program main
	implicit none
    integer::W,H,x,y,k,b
    integer::S(0:1),T(0:1),m(0:1)
    read(*,*)W,H,x,y
    k=W*H/2
    if(x==W/2 .and. y==H/2) then
    b=1
    else 
    b=0
    end if
print*,k,b
end program