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]: [-22.771, 214.763, -40.308, 84.107]
[A]: [-0.097  0.911 -0.171  0.357]


[Q]: [159.875, 35.577, 128.418]
[A]: [0.494 0.11  0.397]


[Q]: [23.6, -76.988, 152.557, 184.532, 48.844, -10.181, 93.617, -48.004, 60.857]
[A]:
[ 0.055 -0.18   0.356  0.43   0.114 -0.024  0.218 -0.112  0.142]