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]: [117.426, -84.716]
[A]: [ 3.59 -2.59]


[Q]: [-36.535, 106.422, 70.12, -59.884, 246.44, -3.675, -49.287, -68.436, 112.992, 33.578]
[A]:
[-0.104  0.303  0.199 -0.17   0.701 -0.01  -0.14  -0.195  0.321  0.095]