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

# check
ans = (W * H) / 2

if W % 2 == 0 and H % 2 == 0 and W // 2 == x and H // 2 == y:
    print(ans, 1, sep=" ")
else:
    print(ans, 0, sep=" ") W, H, x, y = map(int, input().split()) W map(int, input().split()) map int input().split() ().split () input split H x y ans = (W * H) / 2 ans (W * H) / 2 W * H W H 2 if W % 2 == 0 and H % 2 == 0 and W // 2 == x and H // 2 == y:
    print(ans, 1, sep=" ")
else:
    print(ans, 0, sep=" ") W % 2 == 0 and H % 2 == 0 and W // 2 == x and H // 2 == y W % 2 == 0 and H % 2 == 0 and W // 2 == x W % 2 == 0 and H % 2 == 0 W % 2 == 0 W % 2 W 2 0 H % 2 == 0 H % 2 H 2 0 W // 2 == x W // 2 W 2 x H // 2 == y H // 2 H 2 y print(ans, 1, sep=" ") print ans 1 sep=" " sep " " print(ans, 0, sep=" ") print ans 0 sep=" " sep " " H, x, y = map(int, input().split()) map(int, input().split()) H x, y = map(int, input().split()) map(int, input().split()) x y = map(int, input().split()) map(int, input().split()) y W, H, x, y = map(int, input().split()) map(int, input().split()) W ans = (W * H) / 2 (W * H) / 2 ans
# input
W, H, x, y = map(int, input().split())

# check
ans = (W * H) / 2

if W % 2 == 0 and H % 2 == 0 and W // 2 == x and H // 2 == y:
    print(ans, 1, sep=" ")
else:
    print(ans, 0, sep=" ")
