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



m2 = W * H * 0.5

ptn = 1 if W / 2 == x and H / 2 == y else 0



print((m2, ptn))
w, h, x, y = list(map(int, input().split()))



ans = 0

if w / 2 == x and h / 2 == y:

    ans = 1

    

print(((w * h) / 2, ans))
W, H, x, y = list(map(int, input().split()))
m2 = W * H * 0.5
ptn = 1 if W / 2 == x and H / 2 == y else 0
print((m2, ptn))

w, h, x, y = list(map(int, input().split()))
ans = 0
if w / 2 == x and h / 2 == y:
    ans = 1
print(((w * h) / 2, ans))

-W, H, x, y = list(map(int, input().split())) -m2 = W * H * 0.5 -ptn = 1 if W / 2 == x and H / 2 == y else 0 -print((m2, ptn)) +w, h, x, y = list(map(int, input().split())) +ans = 0 +if w / 2 == x and h / 2 == y: +    ans = 1 +print(((w * h) / 2, ans))