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]: [140.946, 100.12, 49.913, -24.764, 211.045]
[A]: [ 0.295  0.21   0.105 -0.052  0.442]


[Q]: [103.286, -45.97, 115.495, 210.558, -96.143, 165.996, -86.865, -78.029]
[A]: [ 0.358 -0.159  0.401  0.73  -0.333  0.576 -0.301 -0.271]


[Q]: [75.406, 218.286, 172.916, -91.773, 109.913, 23.472, 52.182, 94.719]
[A]:
[ 0.115  0.333  0.264 -0.14   0.168  0.036  0.08   0.145]