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]: [-21.05, 243.513, 241.95, 84.576, 98.955, -63.744]
[A]: [-0.036  0.417  0.414  0.145  0.169 -0.109]


[Q]: [234.403, 65.141]
[A]: [0.783 0.217]


[Q]: [198.631, -52.281, 186.789, -63.584, 150.562, 10.52, 168.679, -38.017, 243.269]
[A]:
[ 0.247 -0.065  0.232 -0.079  0.187  0.013  0.21  -0.047  0.302]