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]: [37.56, 31.057, 59.096, -46.118, 99.306, 103.058, -66.785, 166.311]
[A]: [ 0.098  0.081  0.154 -0.12   0.259  0.269 -0.174  0.434]


[Q]: [100.985, 21.265]
[A]: [0.826 0.174]


[Q]: [182.086, 33.135, 48.66, -4.451, 219.808, 217.336, 114.667, -57.1]
[A]:
[ 0.241  0.044  0.065 -0.006  0.291  0.288  0.152 -0.076]