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]: [179.714, 127.831, 44.737, -60.55]
[A]: [ 0.616  0.438  0.153 -0.208]


[Q]: [-71.706, -51.315]
[A]: [0.583 0.417]


[Q]: [22.704, 206.701, -78.293, 182.546, 128.929, -65.115, 136.003]
[A]:
[ 0.043  0.387 -0.147  0.342  0.242 -0.122  0.255]