w, h, x, y = map(int, input().split())
s = w * h / 2
if x == w / 2 and y == h / 2:
  print("{} {}".format(s, 1))
else:
  print("{} {}".format(s, 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 / 2 s w * h / 2 w * h w h 2 if x == w / 2 and y == h / 2:
  print("{} {}".format(s, 1))
else:
  print("{} {}".format(s, 0)) x == w / 2 and y == h / 2 x == w / 2 x w / 2 w 2 y == h / 2 y h / 2 h 2 print("{} {}".format(s, 1)) print "{} {}".format(s, 1) "{} {}".format "{} {}" format s 1 print("{} {}".format(s, 0)) print "{} {}".format(s, 0) "{} {}".format "{} {}" format s 0 y = map(int, input().split()) map(int, input().split()) y x, y = map(int, input().split()) map(int, input().split()) x s = w * h / 2 w * h / 2 s w, h, x, y = map(int, input().split()) map(int, input().split()) w h, x, y = map(int, input().split()) map(int, input().split()) h
w, h, x, y = map(int, input().split())
s = w * h / 2
if x == w / 2 and y == h / 2:
  print("{} {}".format(s, 1))
else:
  print("{} {}".format(s, 0))