W, H, x, y = map(int, input().split())
S = W * H / 2
if W == 2 * x and H == 2 * y:
  print(str(S) + " 1")
else:
  print(str(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 W == 2 * x and H == 2 * y:
  print(str(S) + " 1")
else:
  print(str(S) + " 0") W == 2 * x and H == 2 * y W == 2 * x W 2 * x 2 x H == 2 * y H 2 * y 2 y print(str(S) + " 1") print str(S) + " 1" str(S) str S " 1" print(str(S) + " 0") print str(S) + " 0" str(S) str S " 0" S = W * H / 2 W * H / 2 S W, H, x, y = map(int, input().split()) map(int, input().split()) W x, y = map(int, input().split()) map(int, input().split()) x H, x, y = map(int, input().split()) map(int, input().split()) H y = map(int, input().split()) map(int, input().split()) y
W, H, x, y = map(int, input().split())
S = W * H / 2
if W == 2 * x and H == 2 * y:
  print(str(S) + " 1")
else:
  print(str(S) + " 0")