program main
  implicit none
  real(8) W,H,x,y,ans1
  integer ans2 
  read(*, *)W,H,x,y
  ans1 = W*H*0.5
  if(2*x == W .and. 2*y == H) then
    ans2 = 1
  else
    ans2 = 0
  end if
  write(* ,*)ans1,ans2
end program main
