W,H,X,Y=map(int,input().split())

ans2=0
if ((W%2==0)*W//2==X)*(X>0) and ((H%2==0)*H//2==Y)*(Y>0):
    ans2=1

ans1=W*H/2

print(ans1,ans2) W,H,X,Y=map(int,input().split()) W map(int,input().split()) map int input().split() ().split () input split H X Y ans2=0 ans2 0 if ((W%2==0)*W//2==X)*(X>0) and ((H%2==0)*H//2==Y)*(Y>0):
    ans2=1 ((W%2==0)*W//2==X)*(X>0) and ((H%2==0)*H//2==Y)*(Y>0) ((W%2==0)*W//2==X)*(X>0) (W%2==0)*W//2==X (W%2==0)*W//2 (W%2==0)*W W%2==0 W%2 W 2 0 W 2 X X>0 X 0 ((H%2==0)*H//2==Y)*(Y>0) (H%2==0)*H//2==Y (H%2==0)*H//2 (H%2==0)*H H%2==0 H%2 H 2 0 H 2 Y Y>0 Y 0 ans2=1 ans2 1 ans1=W*H/2 ans1 W*H/2 W*H W H 2 print(ans1,ans2) print ans1 ans2 H,X,Y=map(int,input().split()) map(int,input().split()) H Y=map(int,input().split()) map(int,input().split()) Y ans2=0 0 ans2 ans2=1 1 ans2 X,Y=map(int,input().split()) map(int,input().split()) X W,H,X,Y=map(int,input().split()) map(int,input().split()) W ans1=W*H/2 W*H/2 ans1
W,H,X,Y=map(int,input().split())

ans2=0
if ((W%2==0)*W//2==X)*(X>0) and ((H%2==0)*H//2==Y)*(Y>0):
    ans2=1

ans1=W*H/2

print(ans1,ans2)