w,h,x,y = (int(xi) for xi in input().split())

out =0
if x==w/2 and y==h/2:
    out = 1

print(w*h/2, out) int(xi) for xi in input().split() for xi in input().split() xi input().split() ().split () input split for xi in input().split() int(xi) int xi w,h,x,y = (int(xi) for xi in input().split()) w (int(xi) for xi in input().split()) h x y out =0 out 0 if x==w/2 and y==h/2:
    out = 1 x==w/2 and y==h/2 x==w/2 x w/2 w 2 y==h/2 y h/2 h 2 out = 1 out 1 print(w*h/2, out) print w*h/2 w*h w h 2 out out =0 0 out w,h,x,y = (int(xi) for xi in input().split()) (int(xi) for xi in input().split()) w h,x,y = (int(xi) for xi in input().split()) (int(xi) for xi in input().split()) h x,y = (int(xi) for xi in input().split()) (int(xi) for xi in input().split()) x out = 1 1 out y = (int(xi) for xi in input().split()) (int(xi) for xi in input().split()) y
w,h,x,y = (int(xi) for xi in input().split())

out =0
if x==w/2 and y==h/2:
    out = 1

print(w*h/2, out)
