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]: [211.384, 163.538, 5.985, -28.884, 200.724]
[A]: [ 0.382  0.296  0.011 -0.052  0.363]


[Q]: [148.702, 143.872, 226.132]
[A]: [0.287 0.277 0.436]


[Q]: [18.433, 112.916, 134.44, 101.41, 130.078, 30.124, 170.143, 8.594]
[A]:
[0.026 0.16  0.19  0.144 0.184 0.043 0.241 0.012]