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]: [239.205, 152.573, -5.614]
[A]: [ 0.619  0.395 -0.015]


[Q]: [71.224, 248.241, 139.206]
[A]: [0.155 0.541 0.303]


[Q]: [72.494, 98.53, -96.784, 84.006, 114.208]
[A]:
[ 0.266  0.362 -0.355  0.308  0.419]