W,H,x,y=map(int,input().split())
a1=W*H/2
a2=1 if x==W/2 and y==H/2 else 0
print(a1,a2) W,H,x,y=map(int,input().split()) W map(int,input().split()) map int input().split() ().split () input split H x y a1=W*H/2 a1 W*H/2 W*H W H 2 a2=1 if x==W/2 and y==H/2 else 0 a2 1 if x==W/2 and y==H/2 else 0 x==W/2 and y==H/2 x==W/2 x W/2 W 2 y==H/2 y H/2 H 2 1 0 print(a1,a2) print a1 a2 y=map(int,input().split()) map(int,input().split()) y a2=1 if x==W/2 and y==H/2 else 0 1 if x==W/2 and y==H/2 else 0 a2 x,y=map(int,input().split()) map(int,input().split()) x a1=W*H/2 W*H/2 a1 H,x,y=map(int,input().split()) map(int,input().split()) H W,H,x,y=map(int,input().split()) map(int,input().split()) W
W,H,x,y=map(int,input().split())
a1=W*H/2
a2=1 if x==W/2 and y==H/2 else 0
print(a1,a2)
