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]: [-77.184, -0.749, 1.585]
[A]: [ 1.011  0.01  -0.021]


[Q]: [31.336, -29.902]
[A]: [ 21.852 -20.852]


[Q]: [77.317, 83.71, 112.36, 165.15, -80.161, 203.799, 43.501, 7.194]
[A]:
[ 0.126  0.137  0.183  0.269 -0.131  0.333  0.071  0.012]