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

ans = w * h / 2

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

ans = w * h / 2

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