W,H,a,b =[int(i) for i in input().split()]

if a == W or b == H or a == 0 or b == 0:

    r = 0

elif a/W == b/H:

    r = 1

else :

    r = 0

print(((W*H)/2,int(r)))

W,H,a,b =[int(i) for i in input().split()]

if (a,b) == (W/2,H/2):

    r = 1

else:

    r = 0

print(((W*H)/2,int(r)))

W, H, a, b = [int(i) for i in input().split()]
if a == W or b == H or a == 0 or b == 0:
    r = 0
elif a / W == b / H:
    r = 1
else:
    r = 0
print(((W * H) / 2, int(r)))

W, H, a, b = [int(i) for i in input().split()]
if (a, b) == (W / 2, H / 2):
    r = 1
else:
    r = 0
print(((W * H) / 2, int(r)))

-if a == W or b == H or a == 0 or b == 0: -    r = 0 -elif a / W == b / H: +if (a, b) == (W / 2, H / 2):