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