W, H, x, y = map(int, input().split())
ans1 = W * H / 2
cen_x, cen_y = W/2, H/2
if cen_x == x and cen_y == y:
  ans2 = 1
else:
  ans2 = 0
print(str(ans1) + " " + str(ans2)) W, H, x, y = map(int, input().split()) W map(int, input().split()) map int input().split() ().split () input split H x y ans1 = W * H / 2 ans1 W * H / 2 W * H W H 2 cen_x, cen_y = W/2, H/2 cen_x W/2 W 2 cen_y H/2 H 2 if cen_x == x and cen_y == y:
  ans2 = 1
else:
  ans2 = 0 cen_x == x and cen_y == y cen_x == x cen_x x cen_y == y cen_y y ans2 = 1 ans2 1 ans2 = 0 ans2 0 print(str(ans1) + " " + str(ans2)) print str(ans1) + " " + str(ans2) str(ans1) + " " str(ans1) str ans1 " " str(ans2) str ans2 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 ans2 = 0 0 ans2 ans1 = W * H / 2 W * H / 2 ans1 x, y = map(int, input().split()) map(int, input().split()) x cen_x, cen_y = W/2, H/2 W/2 cen_x cen_y = W/2, H/2 H/2 cen_y y = map(int, input().split()) map(int, input().split()) y ans2 = 1 1 ans2
W, H, x, y = map(int, input().split())
ans1 = W * H / 2
cen_x, cen_y = W/2, H/2
if cen_x == x and cen_y == y:
  ans2 = 1
else:
  ans2 = 0
print(str(ans1) + " " + str(ans2))