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