w, h, x, y = map(int, input().split())
center_x = w / 2
center_y = h / 2
ans = w * h / 2
m = 1 if (center_x == x and center_y == y) else 0
print("{:.9f} {}".format(ans, m)) w, h, x, y = map(int, input().split()) w map(int, input().split()) map int input().split() ().split () input split h x y center_x = w / 2 center_x w / 2 w 2 center_y = h / 2 center_y h / 2 h 2 ans = w * h / 2 ans w * h / 2 w * h w h 2 m = 1 if (center_x == x and center_y == y) else 0 m 1 if (center_x == x and center_y == y) else 0 center_x == x and center_y == y center_x == x center_x x center_y == y center_y y 1 0 print("{:.9f} {}".format(ans, m)) print "{:.9f} {}".format(ans, m) "{:.9f} {}".format "{:.9f} {}" format ans m w, h, x, y = map(int, input().split()) map(int, input().split()) w center_y = h / 2 h / 2 center_y m = 1 if (center_x == x and center_y == y) else 0 1 if (center_x == x and center_y == y) else 0 m y = map(int, input().split()) map(int, input().split()) y center_x = w / 2 w / 2 center_x 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())
center_x = w / 2
center_y = h / 2
ans = w * h / 2
m = 1 if (center_x == x and center_y == y) else 0
print("{:.9f} {}".format(ans, m))
