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

s = W*H/2

if W/2==x and H/2==y:

    print((s,1))

else:

    print((s,0))
W,H,x,y = list(map(int,input().split()))

if x*2==W and y*2==H:

    z = 1

else:

    z = 0

print((W*H/2,z))
W, H, x, y = list(map(int, input().split()))
s = W * H / 2
if W / 2 == x and H / 2 == y:
    print((s, 1))
else:
    print((s, 0))

W, H, x, y = list(map(int, input().split()))
if x * 2 == W and y * 2 == H:
    z = 1
else:
    z = 0
print((W * H / 2, z))

-s = W * H / 2 -if W / 2 == x and H / 2 == y: -    print((s, 1)) +if x * 2 == W and y * 2 == H: +    z = 1 -    print((s, 0)) +    z = 0 +print((W * H / 2, z))