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

s = 0;

if w==x*2 and h==y*2 : s += 1

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

s = 0;

if w==x*2 and h==y*2 : s += 1

print(h*w/2,s)