program main
implicit none
integer :: w, h, x, y
integer :: i
real(8) :: s

read(*,*) w, h, x, y
s = w*h/2.
if( 2*x==w.and. 2*y == h ) then
   i = 1
else
   i = 0
end if
write(*,'(f0.10, a1,i0)') s, ' ', i


end program main
