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



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

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

else:

	print((w * h / 2, '0'))

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()))
if 2 * x == w and 2 * y == h:
    print((w * h / 2, "1"))
else:
    print((w * h / 2, "0"))

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))

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