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]: [226.295, 79.294, -3.174, 147.813, 24.129]
[A]: [ 0.477  0.167 -0.007  0.312  0.051]


[Q]: [100.985, 21.265]
[A]: [0.826 0.174]


[Q]: [175.846, -93.499, -16.273, 90.0, -90.708, 83.682, 162.077]
[A]:
[ 0.565 -0.301 -0.052  0.289 -0.292  0.269  0.521]