W, H ,x, y = map(int, input().split())
if W == H:
  if x == W/2 and y == H/2:
    can = 1
  else:
    can = 0
else:
  if x == W/2 or y == H/2:
    if x == W/2 and y == H/2:
      can = 1
    else:
      can = 0
  else:
    if y == (H/W)*x or y == (-H/W)*x:
      can = 0
    else:
      can = 1
 
print('{:.9f}'.format(W*H/2), can) W, H ,x, y = map(int, input().split()) W map(int, input().split()) map int input().split() ().split () input split H x y if W == H:
  if x == W/2 and y == H/2:
    can = 1
  else:
    can = 0
else:
  if x == W/2 or y == H/2:
    if x == W/2 and y == H/2:
      can = 1
    else:
      can = 0
  else:
    if y == (H/W)*x or y == (-H/W)*x:
      can = 0
    else:
      can = 1
  W == H W H if x == W/2 and y == H/2:
    can = 1
  else:
    can = 0 x == W/2 and y == H/2 x == W/2 x W/2 W 2 y == H/2 y H/2 H 2 can = 1 can 1 can = 0 can 0 if x == W/2 or y == H/2:
    if x == W/2 and y == H/2:
      can = 1
    else:
      can = 0
  else:
    if y == (H/W)*x or y == (-H/W)*x:
      can = 0
    else:
      can = 1
  x == W/2 or y == H/2 x == W/2 x W/2 W 2 y == H/2 y H/2 H 2 if x == W/2 and y == H/2:
      can = 1
    else:
      can = 0
   x == W/2 and y == H/2 x == W/2 x W/2 W 2 y == H/2 y H/2 H 2 can = 1 can 1 can = 0 can 0 if y == (H/W)*x or y == (-H/W)*x:
      can = 0
    else:
      can = 1
  y == (H/W)*x or y == (-H/W)*x y == (H/W)*x y (H/W)*x H/W H W x y == (-H/W)*x y (-H/W)*x -H/W -H H W x can = 0 can 0 can = 1 can 1 print('{:.9f}'.format(W*H/2), can) print '{:.9f}'.format(W*H/2) '{:.9f}'.format '{:.9f}' format W*H/2 W*H W H 2 can y = map(int, input().split()) map(int, input().split()) y x, y = map(int, input().split()) map(int, input().split()) x can = 0 0 can H ,x, y = map(int, input().split()) map(int, input().split()) H can = 0 0 can W, H ,x, y = map(int, input().split()) map(int, input().split()) W can = 1 1 can can = 1 1 can can = 0 0 can can = 1 1 can
W, H ,x, y = map(int, input().split())
if W == H:
  if x == W/2 and y == H/2:
    can = 1
  else:
    can = 0
else:
  if x == W/2 or y == H/2:
    if x == W/2 and y == H/2:
      can = 1
    else:
      can = 0
  else:
    if y == (H/W)*x or y == (-H/W)*x:
      can = 0
    else:
      can = 1
 
print('{:.9f}'.format(W*H/2), can)