W,H,X,Y = map(int,input().split())
xwari = min(X*H,(W-X)*H)
ywari = min(Y*W,(H-Y)*W)
if W/2 == X and H/2 == Y:
    f = 1
else:
    f = 0
print(W*H/2, f) W,H,X,Y = map(int,input().split()) W map(int,input().split()) map int input().split() ().split () input split H X Y xwari = min(X*H,(W-X)*H) xwari min(X*H,(W-X)*H) min X*H X H (W-X)*H W-X W X H ywari = min(Y*W,(H-Y)*W) ywari min(Y*W,(H-Y)*W) min Y*W Y W (H-Y)*W H-Y H Y W if W/2 == X and H/2 == Y:
    f = 1
else:
    f = 0 W/2 == X and H/2 == Y W/2 == X W/2 W 2 X H/2 == Y H/2 H 2 Y f = 1 f 1 f = 0 f 0 print(W*H/2, f) print W*H/2 W*H W H 2 f Y = map(int,input().split()) map(int,input().split()) Y X,Y = map(int,input().split()) map(int,input().split()) X W,H,X,Y = map(int,input().split()) map(int,input().split()) W H,X,Y = map(int,input().split()) map(int,input().split()) H xwari = min(X*H,(W-X)*H) min(X*H,(W-X)*H) xwari ywari = min(Y*W,(H-Y)*W) min(Y*W,(H-Y)*W) ywari f = 1 1 f f = 0 0 f
W,H,X,Y = map(int,input().split())
xwari = min(X*H,(W-X)*H)
ywari = min(Y*W,(H-Y)*W)
if W/2 == X and H/2 == Y:
    f = 1
else:
    f = 0
print(W*H/2, f)
