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