# C - Rectangle Cutting
W,H,x,y = map(int,input().split())
S = W*H

# H,W の中心と x,y の距離
distx = abs(W/2 - x)
disty = abs(H/2 - y)

if distx == disty == 0:
    ans = (S/2,1)
else:
    ans = (S/2,0)
print(*ans) W,H,x,y = map(int,input().split()) W map(int,input().split()) map int input().split() ().split () input split H x y S = W*H S W*H W H distx = abs(W/2 - x) distx abs(W/2 - x) abs W/2 - x W/2 W 2 x disty = abs(H/2 - y) disty abs(H/2 - y) abs H/2 - y H/2 H 2 y if distx == disty == 0:
    ans = (S/2,1)
else:
    ans = (S/2,0) distx == disty == 0 distx == disty distx disty 0 ans = (S/2,1) ans (S/2,1) S/2 S 2 1 ans = (S/2,0) ans (S/2,0) S/2 S 2 0 print(*ans) print *ans ans y = map(int,input().split()) map(int,input().split()) y ans = (S/2,1) (S/2,1) ans ans = (S/2,0) (S/2,0) ans H,x,y = map(int,input().split()) map(int,input().split()) H distx = abs(W/2 - x) abs(W/2 - x) distx W,H,x,y = map(int,input().split()) map(int,input().split()) W S = W*H W*H S x,y = map(int,input().split()) map(int,input().split()) x disty = abs(H/2 - y) abs(H/2 - y) disty
# C - Rectangle Cutting
W,H,x,y = map(int,input().split())
S = W*H

# H,W の中心と x,y の距離
distx = abs(W/2 - x)
disty = abs(H/2 - y)

if distx == disty == 0:
    ans = (S/2,1)
else:
    ans = (S/2,0)
print(*ans)