import sys

import math

w, h, x, y = list(map(int, sys.stdin.readline().split()))

S = w*h/2



if x == w/2 and y == h/2:

  print((S,1))

else:

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

cg = [W/2, H/2]

if [x, y] == cg:

    print(( W * H / 2, 1))

else:

    print((W * H / 2, 0))
import sys
import math

w, h, x, y = list(map(int, sys.stdin.readline().split()))
S = w * h / 2
if x == w / 2 and y == h / 2:
    print((S, 1))
else:
    print((S, 0))

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

-import sys -import math - -w, h, x, y = list(map(int, sys.stdin.readline().split())) -S = w * h / 2 -if x == w / 2 and y == h / 2: -    print((S, 1)) +W, H, x, y = list(map(int, input().split())) +cg = [W / 2, H / 2] +if [x, y] == cg: +    print((W * H / 2, 1)) -    print((S, 0)) +    print((W * H / 2, 0))