program main
  implicit none
  integer :: x, y, w, h
  real :: area
  integer :: flag

  read(*,*) w, h, x, y
  area = w*h/2.0

  if (mod(w,2)/=0 .or. mod(h,2)/=0) then
    flag = 0
  else  
    if (x == w/2 .and. y == h/2) then
      flag = 1
    else
      flag = 0
    endif
  endif

  write(*,*) area, flag

end program main
