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

ox = w/2
xy = h/2
s = w*h/2

if ox == x and xy == y:
  print(s, 1)

else:
  print(s, 0) w,h,x,y = map(int, input().split()) w map(int, input().split()) map int input().split() ().split () input split h x y ox = w/2 ox w/2 w 2 xy = h/2 xy h/2 h 2 s = w*h/2 s w*h/2 w*h w h 2 if ox == x and xy == y:
  print(s, 1)

else:
  print(s, 0) ox == x and xy == y ox == x ox x xy == y xy y print(s, 1) print s 1 print(s, 0) print s 0 s = w*h/2 w*h/2 s y = map(int, input().split()) map(int, input().split()) y h,x,y = map(int, input().split()) map(int, input().split()) h ox = w/2 w/2 ox w,h,x,y = map(int, input().split()) map(int, input().split()) w xy = h/2 h/2 xy x,y = map(int, input().split()) map(int, input().split()) x
w,h,x,y = map(int, input().split())

ox = w/2
xy = h/2
s = w*h/2

if ox == x and xy == y:
  print(s, 1)

else:
  print(s, 0)