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

if x == W*0.5 and y == H*0.5:
    print(H*W*0.5, 1)
else:
    print(H*W*0.5, 0) W, H, x, y = map(int, input().split()) W map(int, input().split()) map int input().split() ().split () input split H x y if x == W*0.5 and y == H*0.5:
    print(H*W*0.5, 1)
else:
    print(H*W*0.5, 0) x == W*0.5 and y == H*0.5 x == W*0.5 x W*0.5 W 0.5 y == H*0.5 y H*0.5 H 0.5 print(H*W*0.5, 1) print H*W*0.5 H*W H W 0.5 1 print(H*W*0.5, 0) print H*W*0.5 H*W H W 0.5 0 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 y = map(int, input().split()) map(int, input().split()) y
W, H, x, y = map(int, input().split())

if x == W*0.5 and y == H*0.5:
    print(H*W*0.5, 1)
else:
    print(H*W*0.5, 0)