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]: [145.983, 91.398, 65.88]
[A]: [0.481 0.301 0.217]


[Q]: [175.223, -83.296, -47.013]
[A]: [ 3.901 -1.855 -1.047]


[Q]: [200.176, -99.688, 84.521, -28.516, 210.03, 199.613, 2.276, 166.46]
[A]:
[ 0.272 -0.136  0.115 -0.039  0.286  0.272  0.003  0.227]