w, h, x, y = map(int, input().split())
print(w * h / 2, int(2 * x == w and 2 * y == h)) w, h, x, y = map(int, input().split()) w map(int, input().split()) map int input().split() ().split () input split h x y print(w * h / 2, int(2 * x == w and 2 * y == h)) print w * h / 2 w * h w h 2 int(2 * x == w and 2 * y == h) int 2 * x == w and 2 * y == h 2 * x == w 2 * x 2 x w 2 * y == h 2 * y 2 y h x, y = map(int, input().split()) map(int, input().split()) x y = map(int, input().split()) map(int, input().split()) y w, h, x, y = map(int, input().split()) map(int, input().split()) w h, x, y = map(int, input().split()) map(int, input().split()) h
w, h, x, y = map(int, input().split())
print(w * h / 2, int(2 * x == w and 2 * y == h))
