W, H, x, y = map(int, input().split())
s = 0
if W == 2*x and H == 2*y:
  s = 1
S = W*H/2
print(S, s, sep =' ') W, H, x, y = map(int, input().split()) W map(int, input().split()) map int input().split() ().split () input split H x y s = 0 s 0 if W == 2*x and H == 2*y:
  s = 1 W == 2*x and H == 2*y W == 2*x W 2*x 2 x H == 2*y H 2*y 2 y s = 1 s 1 S = W*H/2 S W*H/2 W*H W H 2 print(S, s, sep =' ') print S s sep =' ' sep ' ' H, x, y = map(int, input().split()) map(int, input().split()) H x, y = map(int, input().split()) map(int, input().split()) x S = W*H/2 W*H/2 S y = map(int, input().split()) map(int, input().split()) y s = 1 1 s W, H, x, y = map(int, input().split()) map(int, input().split()) W s = 0 0 s
W, H, x, y = map(int, input().split())
s = 0
if W == 2*x and H == 2*y:
  s = 1
S = W*H/2
print(S, s, sep =' ')