program prob5
    implicit none
    integer(8) :: W, H, x, y
    character(len=100) :: S
    read(*,*) W, H, x, y

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

    write(*,'(a)',advance='no') trim(adjustl(S))

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

    stop
contains
end program prob5