w,h,x,y=[int(x) for x in input().split()]
a=w*h/2
if x==w/2 and y==h/2:
  b=1
else:
  b=0
print(a,b) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x w,h,x,y=[int(x) for x in input().split()] w [int(x) for x in input().split()] h x y a=w*h/2 a w*h/2 w*h w h 2 if x==w/2 and y==h/2:
  b=1
else:
  b=0 x==w/2 and y==h/2 x==w/2 x w/2 w 2 y==h/2 y h/2 h 2 b=1 b 1 b=0 b 0 print(a,b) print a b w,h,x,y=[int(x) for x in input().split()] [int(x) for x in input().split()] w h,x,y=[int(x) for x in input().split()] [int(x) for x in input().split()] h y=[int(x) for x in input().split()] [int(x) for x in input().split()] y b=1 1 b x,y=[int(x) for x in input().split()] [int(x) for x in input().split()] x b=0 0 b a=w*h/2 w*h/2 a
w,h,x,y=[int(x) for x in input().split()]
a=w*h/2
if x==w/2 and y==h/2:
  b=1
else:
  b=0
print(a,b)