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

print(H*W/2,end=" ")

if x*y*4==H*W:

  print(1)

else:

  print(0)

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

print((H*W/2,int(x==H/2 and y==W/2)))
H, W, x, y = map(int, input().split())
print(H * W / 2, end=" ")
if x * y * 4 == H * W:
    print(1)
else:
    print(0)

H, W, x, y = list(map(int, input().split()))
print((H * W / 2, int(x == H / 2 and y == W / 2)))

-H, W, x, y = map(int, input().split()) -print(H * W / 2, end=" ") -if x * y * 4 == H * W: -    print(1) -else: -    print(0) +H, W, x, y = list(map(int, input().split())) +print((H * W / 2, int(x == H / 2 and y == W / 2)))