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]: [-27.468, -45.318, 37.552, 122.061]
[A]: [-0.316 -0.522  0.432  1.406]


[Q]: [161.082, 67.844, 17.769, 196.815, 228.033, 21.441]
[A]: [0.232 0.098 0.026 0.284 0.329 0.031]


[Q]: [180.186, 137.804]
[A]:
[0.567 0.433]