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]: [143.387, 196.521, -97.02, 170.676, 198.728, 61.586, -58.101]
[A]: [ 0.233  0.319 -0.158  0.277  0.323  0.1   -0.094]


[Q]: [-34.384, -74.648]
[A]: [0.315 0.685]


[Q]: [115.196, 31.125, 47.593, 163.151, 145.774, -21.014, 201.409, 77.798, 50.188]
[A]:
[ 0.142  0.038  0.059  0.201  0.18  -0.026  0.248  0.096  0.062]