W,H,x,y = map(int,input().split())
ans1 = (W*H)/2
if (x == W/2) and (y == H/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 (x == W/2) and (y == H/2):
    ans2 = 1
else:
    ans2 = 0 (x == W/2) and (y == H/2) x == W/2 x W/2 W 2 y == H/2 y H/2 H 2 ans2 = 1 ans2 1 ans2 = 0 ans2 0 print(ans1,ans2) print ans1 ans2 ans1 = (W*H)/2 (W*H)/2 ans1 H,x,y = map(int,input().split()) map(int,input().split()) H ans2 = 0 0 ans2 x,y = map(int,input().split()) map(int,input().split()) x y = map(int,input().split()) map(int,input().split()) y ans2 = 1 1 ans2 W,H,x,y = map(int,input().split()) map(int,input().split()) W
W,H,x,y = map(int,input().split())
ans1 = (W*H)/2
if (x == W/2) and (y == H/2):
    ans2 = 1
else:
    ans2 = 0
print(ans1,ans2)