program prob5
    implicit none
    integer(8) :: W, H, x, y
    read(*,*) W, H, x, y

    write(*,'(f24.12)',advance='no') real(W, kind=8)*real(H, kind=8)/2.0_8

    if( x == W/2 .and. y == H/2) then
        write(*,*) ' 1'
    else
        write(*,*) ' 0'
    end if

    stop
contains
end program prob5