W,H,x,y = map(int,input().split())
print(W*H*0.5, int(x==W*0.5 and y==H*0.5)) 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*0.5, int(x==W*0.5 and y==H*0.5)) print W*H*0.5 W*H W H 0.5 int(x==W*0.5 and y==H*0.5) int x==W*0.5 and y==H*0.5 x==W*0.5 x W*0.5 W 0.5 y==H*0.5 y H*0.5 H 0.5 x,y = map(int,input().split()) map(int,input().split()) x H,x,y = map(int,input().split()) map(int,input().split()) H y = map(int,input().split()) map(int,input().split()) y W,H,x,y = map(int,input().split()) map(int,input().split()) W
W,H,x,y = map(int,input().split())
print(W*H*0.5, int(x==W*0.5 and y==H*0.5))