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

if x * 2 == w and y * 2 == h:
    print((w*h)/2, 1)
else:
    print((w*h)/2, 0) 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 if x * 2 == w and y * 2 == h:
    print((w*h)/2, 1)
else:
    print((w*h)/2, 0) x * 2 == w and y * 2 == h x * 2 == w x * 2 x 2 w y * 2 == h y * 2 y 2 h 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 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 x,y = [int(x) for x in input().split()] [int(x) for x in input().split()] x w,h,x,y = [int(x) for x in input().split()] [int(x) for x in input().split()] w
w,h,x,y = [int(x) for x in input().split()]

if x * 2 == w and y * 2 == h:
    print((w*h)/2, 1)
else:
    print((w*h)/2, 0)