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

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

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