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]: [119.841, 171.151, 38.877]
[A]: [0.363 0.519 0.118]


[Q]: [118.39, -12.291, 40.382, -47.484, -55.095]
[A]: [ 2.697 -0.28   0.92  -1.082 -1.255]


[Q]: [-51.018, 130.578, -54.191, 144.189, -35.312, -28.86, 128.549, 58.665]
[A]:
[-0.174  0.446 -0.185  0.493 -0.121 -0.099  0.439  0.2  ]