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]: [211.849, 12.238]
[A]: [0.945 0.055]


[Q]: [122.621, 54.698, 245.719, 147.453, 49.487, -4.205, 248.575]
[A]: [ 0.142  0.063  0.284  0.171  0.057 -0.005  0.288]


[Q]: [32.263, 201.742]
[A]:
[0.138 0.862]