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

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

judge = (w == 2 * x and h == 2 * y)
s = w * h / 2
print(s, 1 if judge else 0)
