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]: [118.504, -50.303, 61.191, 48.734, 201.061, 168.434, -59.577, 157.843, -61.589, 8.952]
[A]: [ 0.2   -0.085  0.103  0.082  0.339  0.284 -0.1    0.266 -0.104  0.015]


[Q]: [0.737, -13.324, 17.682, 37.746, 139.164]
[A]: [ 0.004 -0.073  0.097  0.207  0.765]


[Q]: [231.884, -23.535, -98.52]
[A]:
[ 2.111 -0.214 -0.897]