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

ans = 1 if (W/2,H/2) == (x,y) else 0

print((H*W/2,ans))
W,H,x,y=list(map(int,input().split()))

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

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

-ans = 1 if (W / 2, H / 2) == (x, y) else 0 -print((H * W / 2, ans)) +print((H * W / 2, 1 if (W / 2, H / 2) == (x, y) else 0))