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