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