W,H,X,Y = map(int,input().split())

a = W*H//2
if W*H%2 == 1:
  a = str(a)+".5"
b = int(W==X*2 and H==Y*2)
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 if W*H%2 == 1:
  a = str(a)+".5" W*H%2 == 1 W*H%2 W*H W H 2 1 a = str(a)+".5" a str(a)+".5" str(a) str a ".5" b = int(W==X*2 and H==Y*2) b int(W==X*2 and H==Y*2) int W==X*2 and H==Y*2 W==X*2 W X*2 X 2 H==Y*2 H Y*2 Y 2 print(a,b) print a b a = str(a)+".5" str(a)+".5" a b = int(W==X*2 and H==Y*2) int(W==X*2 and H==Y*2) b 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 a = W*H//2 W*H//2 a X,Y = map(int,input().split()) map(int,input().split()) X Y = map(int,input().split()) map(int,input().split()) Y
W,H,X,Y = map(int,input().split())

a = W*H//2
if W*H%2 == 1:
  a = str(a)+".5"
b = int(W==X*2 and H==Y*2)
print(a,b)