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]: [-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  ]


[Q]: [117.426, -84.716]
[A]: [ 3.59 -2.59]


[Q]: [-89.192, 225.099, 150.008, 216.439, 65.665, 161.33, 133.26, 47.876, -30.468]
[A]:
[-0.101  0.256  0.17   0.246  0.075  0.183  0.151  0.054 -0.035]