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

    write(S,'(f44.20)') real(W, kind=16)*real(H, kind=16)/2.0_8

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


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

    stop
contains
end program prob5