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]: [249.541, 233.825, 9.968]
[A]: [0.506 0.474 0.02 ]


[Q]: [56.345, -71.526, 163.534, 45.488, 161.533, 4.674, 190.511, -36.911]
[A]: [ 0.11  -0.139  0.318  0.089  0.314  0.009  0.371 -0.072]


[Q]: [173.96, 73.119, 247.97, 93.716, 201.795, -9.589, 41.527, -52.06, 149.735, 36.604]
[A]:
[ 0.182  0.076  0.259  0.098  0.211 -0.01   0.043 -0.054  0.156  0.038]