w, h, x, y = map(int, input().split())
multi = 1 if 2*x == w and 2*y == h else 0
print(w*h/2, multi) w, h, x, y = map(int, input().split()) w map(int, input().split()) map int input().split() ().split () input split h x y multi = 1 if 2*x == w and 2*y == h else 0 multi 1 if 2*x == w and 2*y == h else 0 2*x == w and 2*y == h 2*x == w 2*x 2 x w 2*y == h 2*y 2 y h 1 0 print(w*h/2, multi) print w*h/2 w*h w h 2 multi h, x, y = map(int, input().split()) map(int, input().split()) h w, h, x, y = map(int, input().split()) map(int, input().split()) w x, y = map(int, input().split()) map(int, input().split()) x y = map(int, input().split()) map(int, input().split()) y multi = 1 if 2*x == w and 2*y == h else 0 1 if 2*x == w and 2*y == h else 0 multi
w, h, x, y = map(int, input().split())
multi = 1 if 2*x == w and 2*y == h else 0
print(w*h/2, multi)