W, H, x, y = map(int,input().split())

s = W*H/2
print(s)

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

s = W*H/2
print(s)

if x*2 == W and y*2 == H:
  print("1")
else:
  print("0")