w,h,x,y = map(int, input().split())
a = []
a.append(w*h/2)
if x*2==w and y*2==h:
  a.append(1)
else:
  a.append(0)
print(' '.join(map(str,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 = [] a [] a.append(w*h/2) a.append a append w*h/2 w*h w h 2 if x*2==w and y*2==h:
  a.append(1)
else:
  a.append(0) x*2==w and y*2==h x*2==w x*2 x 2 w y*2==h y*2 y 2 h a.append(1) a.append a append 1 a.append(0) a.append a append 0 print(' '.join(map(str,a))) print ' '.join(map(str,a)) ' '.join ' ' join map(str,a) map str a a = [] [] a x,y = map(int, input().split()) map(int, input().split()) x w,h,x,y = map(int, input().split()) map(int, input().split()) w 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())
a = []
a.append(w*h/2)
if x*2==w and y*2==h:
  a.append(1)
else:
  a.append(0)
print(' '.join(map(str,a)))