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]: [-40.471, -21.276, 213.299, 177.089, 141.933, -96.589, 103.252, 92.793]
[A]: [-0.071 -0.037  0.374  0.311  0.249 -0.169  0.181  0.163]


[Q]: [172.451, 66.811, -25.587, -96.948, 177.665, 213.007, -68.927]
[A]: [ 0.393  0.152 -0.058 -0.221  0.405  0.486 -0.157]


[Q]: [162.848, 119.901, -87.58, -98.373, 149.067]
[A]:
[ 0.662  0.488 -0.356 -0.4    0.606]