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]: [41.651, 32.877, 0.294, -10.28]
[A]: [ 0.645  0.509  0.005 -0.159]


[Q]: [112.224, 166.663, 38.843, 87.432]
[A]: [0.277 0.411 0.096 0.216]


[Q]: [221.888, 78.376, 229.078]
[A]:
[0.419 0.148 0.433]