      PROGRAM rectangleCutting
      IMPLICIT NONE
      real(16) :: w,h,x,y
      real(16) :: ans
      character(1) :: ans2
      
      
      read*,w,h,x,y
      
      ans = w*h/2_16
      
      if( x*2==w .and. y*2==h )then
        ans2 = '1'
      else
        ans2 = '0'
      end if
      
      print*,ans,ans2
      
      
      
      
      
      END PROGRAM