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]: [-58.385, 83.001, 50.645, -13.698, 189.178, 192.049]
[A]: [-0.132  0.187  0.114 -0.031  0.427  0.434]


[Q]: [-47.013, -70.337, -65.16]
[A]: [0.258 0.385 0.357]


[Q]: [227.76, 164.43, -88.862, 46.315, 152.235]
[A]:
[ 0.454  0.328 -0.177  0.092  0.303]