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

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

    print((w*h/2, 1))

else:

    print((w*h/2, 0))
w, h, x, y = list(map(int, input().split()))

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

w, h, x, y = list(map(int, input().split()))
print((w * h / 2, int(w == 2 * x and h == 2 * y)))

-if w == 2 * x and h == 2 * y: -    print((w * h / 2, 1)) -else: -    print((w * h / 2, 0)) +print((w * h / 2, int(w == 2 * x and h == 2 * y)))