
W,H,x,y = map(int,input().split())

  
if (x == W/2 or y == H/2 or y == -(H*x/W)+H or y == (H*x)/W):
  if x == W/2 and y == H/2:
    print(W*H/2,1)
  else:
    print(W*H/2,0)
elif (x == 0 or x == W) and (y == 0 or y == H):
  print(W*H/2,0) 
else:
  print(W*H/2,0) W,H,x,y = map(int,input().split()) W map(int,input().split()) map int input().split() ().split () input split H x y if (x == W/2 or y == H/2 or y == -(H*x/W)+H or y == (H*x)/W):
  if x == W/2 and y == H/2:
    print(W*H/2,1)
  else:
    print(W*H/2,0)
elif (x == 0 or x == W) and (y == 0 or y == H):
  print(W*H/2,0) 
else:
  print(W*H/2,0) x == W/2 or y == H/2 or y == -(H*x/W)+H or y == (H*x)/W x == W/2 or y == H/2 or y == -(H*x/W)+H x == W/2 or y == H/2 x == W/2 x W/2 W 2 y == H/2 y H/2 H 2 y == -(H*x/W)+H y -(H*x/W)+H -(H*x/W) H*x/W H*x H x W H y == (H*x)/W y (H*x)/W H*x H x W if x == W/2 and y == H/2:
    print(W*H/2,1)
  else:
    print(W*H/2,0) x == W/2 and y == H/2 x == W/2 x W/2 W 2 y == H/2 y H/2 H 2 print(W*H/2,1) print W*H/2 W*H W H 2 1 print(W*H/2,0) print W*H/2 W*H W H 2 0 elif (x == 0 or x == W) and (y == 0 or y == H):
  print(W*H/2,0)  (x == 0 or x == W) and (y == 0 or y == H) x == 0 or x == W x == 0 x 0 x == W x W y == 0 or y == H y == 0 y 0 y == H y H print(W*H/2,0) print W*H/2 W*H W H 2 0 print(W*H/2,0) print W*H/2 W*H W H 2 0 y = map(int,input().split()) map(int,input().split()) y H,x,y = map(int,input().split()) map(int,input().split()) H x,y = map(int,input().split()) map(int,input().split()) x W,H,x,y = map(int,input().split()) map(int,input().split()) W

W,H,x,y = map(int,input().split())

  
if (x == W/2 or y == H/2 or y == -(H*x/W)+H or y == (H*x)/W):
  if x == W/2 and y == H/2:
    print(W*H/2,1)
  else:
    print(W*H/2,0)
elif (x == 0 or x == W) and (y == 0 or y == H):
  print(W*H/2,0) 
else:
  print(W*H/2,0)