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

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

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