#ABC130 C-Rectangle Cutting 14:59

W,H,x,y = map(int, input().split())

def func(W,H,x,y):
    if x* 2 == W and y*2 == H:
        return W*H/2, 1
    else:
        return W*H/2, 0
print(*func(W,H,x,y)) W,H,x,y = map(int, input().split()) W map(int, input().split()) map int input().split() ().split () input split H x y def func(W,H,x,y):
    if x* 2 == W and y*2 == H:
        return W*H/2, 1
    else:
        return W*H/2, 0 func if x* 2 == W and y*2 == H:
        return W*H/2, 1
    else:
        return W*H/2, 0 x* 2 == W and y*2 == H x* 2 == W x* 2 x 2 W y*2 == H y*2 y 2 H return W*H/2, 1 return W*H/2, 1 W*H/2 W*H W H 2 1 return W*H/2, 0 return W*H/2, 0 W*H/2 W*H W H 2 0 W W H H x x y y print(*func(W,H,x,y)) print *func(W,H,x,y) func(W,H,x,y) func W H x y def func(W,H,x,y):
    if x* 2 == W and y*2 == H:
        return W*H/2, 1
    else:
        return W*H/2, 0 def func(W,H,x,y):
    if x* 2 == W and y*2 == H:
        return W*H/2, 1
    else:
        return W*H/2, 0 func y = map(int, input().split()) map(int, input().split()) y W,H,x,y = map(int, input().split()) map(int, input().split()) W H,x,y = map(int, input().split()) map(int, input().split()) H x,y = map(int, input().split()) map(int, input().split()) x
#ABC130 C-Rectangle Cutting 14:59

W,H,x,y = map(int, input().split())

def func(W,H,x,y):
    if x* 2 == W and y*2 == H:
        return W*H/2, 1
    else:
        return W*H/2, 0
print(*func(W,H,x,y))