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]: [240.691, -46.027]
[A]: [ 1.236 -0.236]


[Q]: [131.022, 223.416, -39.398, 89.931]
[A]: [ 0.324  0.552 -0.097  0.222]


[Q]: [209.725, 244.372, 87.6, 117.083, 163.172, 160.292, 132.303, 185.238, 96.591, 177.226]
[A]:
[0.133 0.155 0.056 0.074 0.104 0.102 0.084 0.118 0.061 0.113]