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

ans = [0, 1]

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

ans = [0, 1]

print(w*h/2, ans[w == 2 * x and h == 2 * y])
