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



ans = W * H / 2

n = 1 if W == x * 2 and H == y * 2 else 0

print((ans, n))

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

ans = w * h / 2

n = 1 if w == x * 2 and h == y * 2 else 0

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

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

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