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]: [146.907, 9.655]
[A]: [0.938 0.062]


[Q]: [-36.344, 35.248, 1.713, 241.442, 224.638, 193.151]
[A]: [-0.055  0.053  0.003  0.366  0.34   0.293]


[Q]: [-87.617, -92.025, -12.298, 141.476, 142.198, 14.635, -48.293, 172.976]
[A]:
[-0.379 -0.398 -0.053  0.612  0.615  0.063 -0.209  0.749]