W,H,x,y = map(int,input().split())

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

n = (W*H)/2
if W == x*2 and H == y*2:
  print(n, 1)
else:
  print(n, 0)
