W, H, x, y = map(int, input().split())
mid = [W/2, H/2]
ans1 = W*H/2
if mid[0] == x and mid[1] == y:
    ans2 = 1
else:
    ans2 = 0
print(ans1, ans2) W, H, x, y = map(int, input().split()) W map(int, input().split()) map int input().split() ().split () input split H x y mid = [W/2, H/2] mid [W/2, H/2] W/2 W 2 H/2 H 2 ans1 = W*H/2 ans1 W*H/2 W*H W H 2 if mid[0] == x and mid[1] == y:
    ans2 = 1
else:
    ans2 = 0 mid[0] == x and mid[1] == y mid[0] == x mid[0] mid 0 x mid[1] == y mid[1] mid 1 y ans2 = 1 ans2 1 ans2 = 0 ans2 0 print(ans1, ans2) print ans1 ans2 mid = [W/2, H/2] [W/2, H/2] mid ans2 = 1 1 ans2 y = map(int, input().split()) map(int, input().split()) y H, x, y = map(int, input().split()) map(int, input().split()) H ans1 = W*H/2 W*H/2 ans1 W, H, x, y = map(int, input().split()) map(int, input().split()) W ans2 = 0 0 ans2 x, y = map(int, input().split()) map(int, input().split()) x
W, H, x, y = map(int, input().split())
mid = [W/2, H/2]
ans1 = W*H/2
if mid[0] == x and mid[1] == y:
    ans2 = 1
else:
    ans2 = 0
print(ans1, ans2)