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]: [244.93, 200.366, 170.077]
[A]: [0.398 0.326 0.276]


[Q]: [-88.081, 161.295]
[A]: [-1.203  2.203]


[Q]: [-73.415, 244.331, -14.807, 39.586, 214.619, 81.599, 1.973, 182.596, 180.304]
[A]:
[-0.086  0.285 -0.017  0.046  0.25   0.095  0.002  0.213  0.21 ]


