W,H,x,y = map(int,input().split())
if W/2 == x and H/2 == y:
  pat = 1
else:
  pat = 0
ans =W*H/2
ret = [ans, pat]
print(*ret) W,H,x,y = map(int,input().split()) W map(int,input().split()) map int input().split() ().split () input split H x y if W/2 == x and H/2 == y:
  pat = 1
else:
  pat = 0 W/2 == x and H/2 == y W/2 == x W/2 W 2 x H/2 == y H/2 H 2 y pat = 1 pat 1 pat = 0 pat 0 ans =W*H/2 ans W*H/2 W*H W H 2 ret = [ans, pat] ret [ans, pat] ans pat print(*ret) print *ret ret W,H,x,y = map(int,input().split()) map(int,input().split()) W pat = 0 0 pat pat = 1 1 pat ans =W*H/2 W*H/2 ans ret = [ans, pat] [ans, pat] ret x,y = map(int,input().split()) map(int,input().split()) x y = map(int,input().split()) map(int,input().split()) y H,x,y = map(int,input().split()) map(int,input().split()) H
W,H,x,y = map(int,input().split())
if W/2 == x and H/2 == y:
  pat = 1
else:
  pat = 0
ans =W*H/2
ret = [ans, pat]
print(*ret)