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



print(('{:.9f}'.format(W*H/2), 1 if W / 2 == x and H / 2 == y else 0))
w,h,x,y = list(map(int,input().split()))

print(('{:.12f}'.format(w * h / 2), 1 if w / 2 == x and h / 2 == y else 0))

W, H, x, y = list(map(int, input().split()))
print(("{:.9f}".format(W * H / 2), 1 if W / 2 == x and H / 2 == y else 0))

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

-W, H, x, y = list(map(int, input().split())) -print(("{:.9f}".format(W * H / 2), 1 if W / 2 == x and H / 2 == y else 0)) +w, h, x, y = list(map(int, input().split())) +print(("{:.12f}".format(w * h / 2), 1 if w / 2 == x and h / 2 == y else 0))