W,H,X,Y = map(int,input().split())
S = W*H/2

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

if X==W/2 and Y==H/2:
  print(S,1)
else:
  print(S,0)