W,H,x,y = map(int,input().split())
ans = float(W*H)/2.0
ans2 = (x==W/2) and (y==H/2)
print(ans,ans2*1) W,H,x,y = map(int,input().split()) W map(int,input().split()) map int input().split() ().split () input split H x y ans = float(W*H)/2.0 ans float(W*H)/2.0 float(W*H) float W*H W H 2.0 ans2 = (x==W/2) and (y==H/2) ans2 (x==W/2) and (y==H/2) x==W/2 x W/2 W 2 y==H/2 y H/2 H 2 print(ans,ans2*1) print ans ans2*1 ans2 1 ans2 = (x==W/2) and (y==H/2) (x==W/2) and (y==H/2) ans2 y = map(int,input().split()) map(int,input().split()) y H,x,y = map(int,input().split()) map(int,input().split()) H ans = float(W*H)/2.0 float(W*H)/2.0 ans x,y = map(int,input().split()) map(int,input().split()) x W,H,x,y = map(int,input().split()) map(int,input().split()) W
W,H,x,y = map(int,input().split())
ans = float(W*H)/2.0
ans2 = (x==W/2) and (y==H/2)
print(ans,ans2*1)