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

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

ans = W * H / 2
cent = 0
if (x==W/2) and (y==H/2):
  cent = 1
  
print(ans, cent)