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