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