program name
    use,intrinsic :: iso_fortran_env
    implicit none
    integer(int64):: w,h,x,y,bunkatsu

    read*, w,h,x,y
    bunkatsu=0
    if (2*x==w .and. 2*y==h) bunkatsu=1
    print*, dble(w*h)/2d0, bunkatsu
end program name