W,H,X,Y = list(map(int,input().split()))

if W/2 == X and H/2 == Y:

    f = 1

else:

    f = 0

print((W*H/2, f))

W,H,X,Y = list(map(int,input().split()))

if W == X*2 and H == Y*2:

    f = 1

else:

    f = 0

print((W*H/2, f))

W, H, X, Y = list(map(int, input().split()))
if W / 2 == X and H / 2 == Y:
    f = 1
else:
    f = 0
print((W * H / 2, f))

W, H, X, Y = list(map(int, input().split()))
if W == X * 2 and H == Y * 2:
    f = 1
else:
    f = 0
print((W * H / 2, f))

-if W / 2 == X and H / 2 == Y: +if W == X * 2 and H == Y * 2: