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

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

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

else:

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

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

s = W * H / 2

t = 0

if W % 2 == 0 and H % 2 == 0:

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

        t = 1

print((s,t))

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

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

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