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]: [55.241, 162.66, 158.823, 140.558, 71.473, -48.092]
[A]: [ 0.102  0.301  0.294  0.26   0.132 -0.089]


[Q]: [83.552, 242.554]
[A]: [0.256 0.744]


[Q]: [222.259, 241.684, -46.248, 140.561, 49.038, 75.441, 144.207, -99.499, 2.238]
[A]:
[ 0.305  0.331 -0.063  0.193  0.067  0.103  0.198 -0.136  0.003]