w, h, x, y = map(int, input().split())
s = h * w / 2
p = 0
if w / 2 == x and h / 2 == y:
  p = 1
print(s, p) w, h, x, y = map(int, input().split()) w map(int, input().split()) map int input().split() ().split () input split h x y s = h * w / 2 s h * w / 2 h * w h w 2 p = 0 p 0 if w / 2 == x and h / 2 == y:
  p = 1 w / 2 == x and h / 2 == y w / 2 == x w / 2 w 2 x h / 2 == y h / 2 h 2 y p = 1 p 1 print(s, p) print s p h, x, y = map(int, input().split()) map(int, input().split()) h p = 0 0 p y = map(int, input().split()) map(int, input().split()) y s = h * w / 2 h * w / 2 s w, h, x, y = map(int, input().split()) map(int, input().split()) w p = 1 1 p x, y = map(int, input().split()) map(int, input().split()) x
w, h, x, y = map(int, input().split())
s = h * w / 2
p = 0
if w / 2 == x and h / 2 == y:
  p = 1
print(s, p)