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]: [227.76, 164.43, -88.862, 46.315, 152.235]
[A]: [ 0.454  0.328 -0.177  0.092  0.303]


[Q]: [-95.264, 198.074]
[A]: [-0.927  1.927]


[Q]: [198.838, 118.549, -83.183, 93.825, 209.533]
[A]:
[ 0.37   0.221 -0.155  0.175  0.39 ]