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

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

s = w*h/2 
ans = int((w/2, h/2) == (x, y))
print(s, ans)
