w,h,x,y = map(int,input().split())
tmp1 = abs(w-x)
tmp2 = abs(h-y)

ans = w*h/2

if x == w/2 and y == h/2:
    print(ans,1)
else:
    print(ans,0) w,h,x,y = map(int,input().split()) w map(int,input().split()) map int input().split() ().split () input split h x y tmp1 = abs(w-x) tmp1 abs(w-x) abs w-x w x tmp2 = abs(h-y) tmp2 abs(h-y) abs h-y h y ans = w*h/2 ans w*h/2 w*h w h 2 if x == w/2 and y == h/2:
    print(ans,1)
else:
    print(ans,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(ans,1) print ans 1 print(ans,0) print ans 0 x,y = map(int,input().split()) map(int,input().split()) x y = map(int,input().split()) map(int,input().split()) y tmp2 = abs(h-y) abs(h-y) tmp2 h,x,y = map(int,input().split()) map(int,input().split()) h tmp1 = abs(w-x) abs(w-x) tmp1 ans = w*h/2 w*h/2 ans w,h,x,y = map(int,input().split()) map(int,input().split()) w
w,h,x,y = map(int,input().split())
tmp1 = abs(w-x)
tmp2 = abs(h-y)

ans = w*h/2

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