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

First = min(W * (H - y), W * y)
Second = min(x * H, (W - x) * H)
check = 0
if x * 2 == W and y * 2 == H:
    check = 1
print(W * H / 2, check) W, H, x, y = map(int, input().split()) W map(int, input().split()) map int input().split() ().split () input split H x y First = min(W * (H - y), W * y) First min(W * (H - y), W * y) min W * (H - y) W H - y H y W * y W y Second = min(x * H, (W - x) * H) Second min(x * H, (W - x) * H) min x * H x H (W - x) * H W - x W x H check = 0 check 0 if x * 2 == W and y * 2 == H:
    check = 1 x * 2 == W and y * 2 == H x * 2 == W x * 2 x 2 W y * 2 == H y * 2 y 2 H check = 1 check 1 print(W * H / 2, check) print W * H / 2 W * H W H 2 check x, y = map(int, input().split()) map(int, input().split()) x y = map(int, input().split()) map(int, input().split()) y check = 0 0 check 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 check = 1 1 check Second = min(x * H, (W - x) * H) min(x * H, (W - x) * H) Second First = min(W * (H - y), W * y) min(W * (H - y), W * y) First
W, H, x, y = map(int, input().split())

First = min(W * (H - y), W * y)
Second = min(x * H, (W - x) * H)
check = 0
if x * 2 == W and y * 2 == H:
    check = 1
print(W * H / 2, check)
