program main
  implicit none
  integer(8) :: w, h, x, y, fuku
  real(8) :: half_area
  read (*, *) w, h, x, y
  half_area = w * h * 0.5d0
  if (x * 2 == w .and. y * 2 == h) then
    fuku = 1
  else
    fuku = 0
  end if
  write (*, "(f0.1, ' ', i0)") half_area, fuku
end program main
