w, h, x, y = map(int, input().split())
s = w * h
dx, dy = w / 2, h / 2
if (x == dx) & (y == dy):
  print(s / 2, 1)
else:
  print(s / 2, 0) w, h, x, y = map(int, input().split()) w map(int, input().split()) map int input().split() ().split () input split h x y s = w * h s w * h w h dx, dy = w / 2, h / 2 dx w / 2 w 2 dy h / 2 h 2 if (x == dx) & (y == dy):
  print(s / 2, 1)
else:
  print(s / 2, 0) (x == dx) & (y == dy) x == dx x dx y == dy y dy print(s / 2, 1) print s / 2 s 2 1 print(s / 2, 0) print s / 2 s 2 0 dy = w / 2, h / 2 h / 2 dy h, x, y = map(int, input().split()) map(int, input().split()) h x, y = map(int, input().split()) map(int, input().split()) x dx, dy = w / 2, h / 2 w / 2 dx w, h, x, y = map(int, input().split()) map(int, input().split()) w s = w * h w * h s y = map(int, input().split()) map(int, input().split()) y
w, h, x, y = map(int, input().split())
s = w * h
dx, dy = w / 2, h / 2
if (x == dx) & (y == dy):
  print(s / 2, 1)
else:
  print(s / 2, 0)