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