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 2*x==W and 2*y==H:

    flag = 1

else:

    flag = 0

print((S,flag))
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 2 * x == W and 2 * y == H:
    flag = 1
else:
    flag = 0
print((S, flag))

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