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