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]: [56.012, -96.02, 100.719, 181.201, 82.523]
[A]: [ 0.173 -0.296  0.31   0.559  0.254]


[Q]: [225.005, 77.471, -47.328, -83.734, -80.38, 79.714, 89.987]
[A]: [ 0.863  0.297 -0.182 -0.321 -0.308  0.306  0.345]


[Q]: [61.442, 185.051, 122.514, 63.828]
[A]:
[0.142 0.428 0.283 0.147]