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