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

	S(0)=x*H
    S(1)=(W-x)*H
    
    T(0)=y*W
    T(1)=(H-y)*W
    
    m(0)=minval(S)
    m(1)=minval(T)
    
    k=max(m(0),m(1))
    
    if(m(0)==m(1)) then 
    	b=1
    else
        b=0
    end if
    
   if(m(0)==0  .and. m(1)==0)then
   k=H*W/2
   b=0
   else 
   k=k
   b=b
   end if
   
print*,k,b
end program