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