W, H, X, Y = map(int, input().split())

ans1 = (W*H)/2
if W == X*2 and H == Y*2:
    ans2 = 1
else:
    ans2 = 0
print(ans1, ans2) W, H, X, Y = map(int, input().split()) W map(int, input().split()) map int input().split() ().split () input split H X Y ans1 = (W*H)/2 ans1 (W*H)/2 W*H W H 2 if W == X*2 and H == Y*2:
    ans2 = 1
else:
    ans2 = 0 W == X*2 and H == Y*2 W == X*2 W X*2 X 2 H == Y*2 H Y*2 Y 2 ans2 = 1 ans2 1 ans2 = 0 ans2 0 print(ans1, ans2) print ans1 ans2 ans2 = 0 0 ans2 W, H, X, Y = map(int, input().split()) map(int, input().split()) W Y = map(int, input().split()) map(int, input().split()) Y ans1 = (W*H)/2 (W*H)/2 ans1 X, Y = map(int, input().split()) map(int, input().split()) X ans2 = 1 1 ans2 H, X, Y = map(int, input().split()) map(int, input().split()) H
W, H, X, Y = map(int, input().split())

ans1 = (W*H)/2
if W == X*2 and H == Y*2:
    ans2 = 1
else:
    ans2 = 0
print(ans1, ans2)
