temp=input().split()

W=int(temp[0])

H=int(temp[1])

x=int(temp[2])

y=int(temp[3])



S=W*H/2

if W/2==x and H/2==y:

  w=int(1)

else:

  w=int(0)

  

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



S=W*H/2

output='0'

if x==W/2 and y==H/2:

  output='1'

  

print((' '.join([str(S), output])))
temp = input().split()
W = int(temp[0])
H = int(temp[1])
x = int(temp[2])
y = int(temp[3])
S = W * H / 2
if W / 2 == x and H / 2 == y:
    w = int(1)
else:
    w = int(0)
print((S, w))

W, H, x, y = list(map(int, input().split()))
S = W * H / 2
output = "0"
if x == W / 2 and y == H / 2:
    output = "1"
print((" ".join([str(S), output])))

-temp = input().split() -W = int(temp[0]) -H = int(temp[1]) -x = int(temp[2]) -y = int(temp[3]) +W, H, x, y = list(map(int, input().split())) -if W / 2 == x and H / 2 == y: -    w = int(1) -else: -    w = int(0) -print((S, w)) +output = "0" +if x == W / 2 and y == H / 2: +    output = "1" +print((" ".join([str(S), output])))