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

w = W/2

h = H/2

ansA = 0

ansB = 0



xR = W-x

yR = H-y





ansA = W*H/2



if w == x and h == y:

    ansB = 1



print((ansA,ansB))

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

w = W/2

h = H/2

ansA = 0

ansB = 0

ansA = W*H/2

if w == x and h == y:

    ansB = 1

print((ansA,ansB))

W, H, x, y = list(map(int, input().split()))
w = W / 2
h = H / 2
ansA = 0
ansB = 0
xR = W - x
yR = H - y
ansA = W * H / 2
if w == x and h == y:
    ansB = 1
print((ansA, ansB))

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

-xR = W - x -yR = H - y