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