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

S = (w*h)/2
if 2*x ==w and 2*y == h:
    j = 1
else:j = 0

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

S = (w*h)/2
if 2*x ==w and 2*y == h:
    j = 1
else:j = 0

print(S,j)