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]: [-29.043, -32.999, 146.576, 167.992, 174.896, 74.123, 203.797, -47.174, 153.414]
[A]: [-0.036 -0.041  0.181  0.207  0.216  0.091  0.251 -0.058  0.189]


[Q]: [138.371, 30.093]
[A]: [0.821 0.179]


[Q]: [8.312, 107.595, -71.065, -98.935, 244.797, 109.229]
[A]:
[ 0.028  0.359 -0.237 -0.33   0.816  0.364]