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