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

w = W / 2
h = H / 2

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

w = W / 2
h = H / 2

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