w, h, x, y = map(int, input().split())

ans  = (w*h)/2

if (x+x) == w and (y+y) == h:
    judge = 1
else:
    judge = 0
    
print(ans, judge) w, h, x, y = map(int, input().split()) w map(int, input().split()) map int input().split() ().split () input split h x y ans  = (w*h)/2 ans (w*h)/2 w*h w h 2 if (x+x) == w and (y+y) == h:
    judge = 1
else:
    judge = 0
     (x+x) == w and (y+y) == h (x+x) == w x+x x x w (y+y) == h y+y y y h judge = 1 judge 1 judge = 0 judge 0 print(ans, judge) print ans judge h, x, y = map(int, input().split()) map(int, input().split()) h w, h, x, y = map(int, input().split()) map(int, input().split()) w judge = 1 1 judge x, y = map(int, input().split()) map(int, input().split()) x judge = 0 0 judge ans  = (w*h)/2 (w*h)/2 ans y = map(int, input().split()) map(int, input().split()) y
w, h, x, y = map(int, input().split())

ans  = (w*h)/2

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