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]: [193.398, 164.137, 144.199, -88.324]
[A]: [ 0.468  0.397  0.349 -0.214]


[Q]: [176.219, 63.491, -54.545, 78.808, -64.59, -30.172, 176.554, 124.599, -61.991]
[A]:
[ 0.432  0.155 -0.134  0.193 -0.158 -0.074  0.432  0.305 -0.152]