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

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

if x == w/2 and y == h/2:
  ans = 1
else:
  ans = 0
print(w*h/2,ans)