program sample
    implicit none
  
    integer(8) :: i,j,m,n,w,h,x,y
    real(8)::a,b
   
    read(*,*) w,h,x,y

  
    write(*,'(f28.10)',advance='no') w*h/2.0
    if (mod(w,2)==1 .or. mod(h,2)==1)then
        write(*,*)0
    else
        if (x==w/2 .and. y==h/2) then
            write(*,*)1
        else
            write(*,*)0
        end if
    end if
  
    stop
end program sample
  

