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