w,h,x,y=map(int, input().split())
S= w*h/2
ans = 1 if (x+x==w) and (y+y==h) else 0
print(S, ans) w,h,x,y=map(int, input().split()) w map(int, input().split()) map int input().split() ().split () input split h x y S= w*h/2 S w*h/2 w*h w h 2 ans = 1 if (x+x==w) and (y+y==h) else 0 ans 1 if (x+x==w) and (y+y==h) else 0 (x+x==w) and (y+y==h) x+x==w x+x x x w y+y==h y+y y y h 1 0 print(S, ans) print S ans x,y=map(int, input().split()) map(int, input().split()) x ans = 1 if (x+x==w) and (y+y==h) else 0 1 if (x+x==w) and (y+y==h) else 0 ans w,h,x,y=map(int, input().split()) map(int, input().split()) w S= w*h/2 w*h/2 S h,x,y=map(int, input().split()) map(int, input().split()) h y=map(int, input().split()) map(int, input().split()) y
w,h,x,y=map(int, input().split())
S= w*h/2
ans = 1 if (x+x==w) and (y+y==h) else 0
print(S, ans)