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]: [98.484, 190.025, -78.608]
[A]: [ 0.469  0.905 -0.375]


[Q]: [102.172, 110.658, -51.022, 53.999, 83.403]
[A]: [ 0.341  0.37  -0.171  0.18   0.279]


[Q]: [23.218, -28.733, 180.917, 109.593, 24.545, -30.501, 163.167, 22.587]
[A]:
[ 0.05  -0.062  0.389  0.236  0.053 -0.066  0.351  0.049]