a, b, c, d = list(map(int, input().split()))

if a == c * 2 and b == d * 2:

    print((str(a * b / 2) + " 1"))

else:

    print((str(a * b / 2) + " 0"))

a, b, c, d = list(map(int, input().split()))

if c * 2 == a and d * 2 == b:

    print((a * b / 2, 1))

else:

    print((a * b / 2, 0))

a, b, c, d = list(map(int, input().split()))
if a == c * 2 and b == d * 2:
    print((str(a * b / 2) + " 1"))
else:
    print((str(a * b / 2) + " 0"))

a, b, c, d = list(map(int, input().split()))
if c * 2 == a and d * 2 == b:
    print((a * b / 2, 1))
else:
    print((a * b / 2, 0))

-if a == c * 2 and b == d * 2: -    print((str(a * b / 2) + " 1")) +if c * 2 == a and d * 2 == b: +    print((a * b / 2, 1)) -    print((str(a * b / 2) + " 0")) +    print((a * b / 2, 0))