W, H, x, y = map(int, input().split())
S = W * H
ans = float(S / 2.0)


gx, gy = W / 2.0, H / 2.0

if (gx == x) and (gy == y):
    tar = '1'
else:
    tar = '0'

print(ans, tar) 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 ans = float(S / 2.0) ans float(S / 2.0) float S / 2.0 S 2.0 gx, gy = W / 2.0, H / 2.0 gx W / 2.0 W 2.0 gy H / 2.0 H 2.0 if (gx == x) and (gy == y):
    tar = '1'
else:
    tar = '0' (gx == x) and (gy == y) gx == x gx x gy == y gy y tar = '1' tar '1' tar = '0' tar '0' print(ans, tar) print ans tar tar = '1' '1' tar gx, gy = W / 2.0, H / 2.0 W / 2.0 gx tar = '0' '0' tar S = W * H W * H S gy = W / 2.0, H / 2.0 H / 2.0 gy H, x, y = map(int, input().split()) map(int, input().split()) H W, H, x, y = map(int, input().split()) map(int, input().split()) W x, y = map(int, input().split()) map(int, input().split()) x ans = float(S / 2.0) float(S / 2.0) ans y = map(int, input().split()) map(int, input().split()) y
W, H, x, y = map(int, input().split())
S = W * H
ans = float(S / 2.0)


gx, gy = W / 2.0, H / 2.0

if (gx == x) and (gy == y):
    tar = '1'
else:
    tar = '0'

print(ans, tar)
