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.945, 42.333]
[A]: [0.85 0.15]


[Q]: [226.341, 48.673, 137.819]
[A]: [0.548 0.118 0.334]


[Q]: [143.952, 188.806, -88.383, -71.215, 157.74]
[A]:
[ 0.435  0.571 -0.267 -0.215  0.477]