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]: [-35.188, 219.611, 33.657, -58.879, 120.955]
[A]: [-0.126  0.784  0.12  -0.21   0.432]


[Q]: [-65.101, 50.909, 218.069]
[A]: [-0.319  0.25   1.07 ]


[Q]: [99.775, 171.465, -48.526, -77.013, -51.782, -47.144]
[A]:
[ 2.133  3.666 -1.037 -1.646 -1.107 -1.008]