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

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

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

  write(*,*) area, flag

end program main

