program kadai
implicit none
integer  ::  w,h,x,y
real(8)  ::  ans_1
integer  ::  ans_2
read(*,*) w,h,x,y
ans_1=dble(w)*dble(h)/2.0_8
if (x*2==w .and. y*2==h) then
    ans_2=1
else
    ans_2=0
end if
write(*,*) ans_1,ans_2
end program kadai
