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]: [143.387, 196.521, -97.02, 170.676, 198.728, 61.586, -58.101]
[A]: [ 0.233  0.319 -0.158  0.277  0.323  0.1   -0.094]


[Q]: [224.598, -17.025, 112.546, -16.324, -23.133, -23.311, 202.051, -40.903, -30.892]
[A]: [ 0.579 -0.044  0.29  -0.042 -0.06  -0.06   0.521 -0.106 -0.08 ]


[Q]: [31.541, -32.498, 202.96]
[A]:
[ 0.156 -0.161  1.005]