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: [-80.77, -68.56, 180.511, 184.798, -62.277, 12.478, 213.681, 50.928, 147.82]

A: [-0.14  -0.118  0.312  0.319 -0.108  0.022  0.369  0.088  0.255]
****
Q: [239.945, 42.333]

A: [0.85 0.15]
****
Q: [136.984, 70.614, 83.043, 160.856, 164.796, 181.716, -38.745, 219.659, -59.398, 32.83]

A:
[ 0.144  0.074  0.087  0.169  0.173  0.191 -0.041  0.231 -0.062  0.034]
****