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.841, 139.486, 28.367, 224.397, -7.816, 171.664, 120.019]
[A]: [ 0.263  0.152  0.031  0.245 -0.009  0.187  0.131]


[Q]: [-50.47, 175.805, -49.725]
[A]: [-0.668  2.325 -0.658]


[Q]: [165.305, 185.647]
[A]:
[0.471 0.529]


