W, H, x, y = map(int, input().split())
v = x/W
h = y/H
if v and h == 0.5 :
    print(W*H/2, 1)
else:
    print(W*H/2, 0) W, H, x, y = map(int, input().split()) W map(int, input().split()) map int input().split() ().split () input split H x y v = x/W v x/W x W h = y/H h y/H y H if v and h == 0.5 :
    print(W*H/2, 1)
else:
    print(W*H/2, 0) v and h == 0.5 v h == 0.5 h 0.5 print(W*H/2, 1) print W*H/2 W*H W H 2 1 print(W*H/2, 0) print W*H/2 W*H W H 2 0 W, H, x, y = map(int, input().split()) map(int, input().split()) W x, y = map(int, input().split()) map(int, input().split()) x y = map(int, input().split()) map(int, input().split()) y v = x/W x/W v h = y/H y/H h H, x, y = map(int, input().split()) map(int, input().split()) H
W, H, x, y = map(int, input().split())
v = x/W
h = y/H
if v and h == 0.5 :
    print(W*H/2, 1)
else:
    print(W*H/2, 0)