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

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

if W%2==0 and x==W//2 and H%2==0 and y==H//2:
    print("{:.09f}".format(W*H/2),1)
else:
    print("{:.09f}".format(W*H/2),0)
