w,h,x,y = list(map(int,input().split()))

flag = 0

if ((x/w) ==0.5) and ((y/h) == 0.5):

  flag = 1

print(((w*h)/2,flag))
w,h,x,y = list(map(int,input().split()))

flag = 0

if (2*x == w) and (2 * y == h):

  flag = 1

print(((w*h)/2,flag))
w, h, x, y = list(map(int, input().split()))
flag = 0
if ((x / w) == 0.5) and ((y / h) == 0.5):
    flag = 1
print(((w * h) / 2, flag))

w, h, x, y = list(map(int, input().split()))
flag = 0
if (2 * x == w) and (2 * y == h):
    flag = 1
print(((w * h) / 2, flag))

-if ((x / w) == 0.5) and ((y / h) == 0.5): +if (2 * x == w) and (2 * y == h):