In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.

Q: [113.564, -24.778, 28.792, 144.993, -63.973, 125.941, -56.14, -85.393]

A: [ 0.621 -0.135  0.157  0.792 -0.35   0.688 -0.307 -0.467]
****
Q: [67.243, 183.176, -8.464, 188.968, 235.961, 91.306]

A: [ 0.089  0.242 -0.011  0.249  0.311  0.12 ]
****
Q: [-43.702, 33.476, 181.77, 150.27, 229.222, 159.082, 201.279, 222.643, 20.513]

A:
[-0.038  0.029  0.157  0.13   0.199  0.138  0.174  0.193  0.018]
****