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