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: [-35.188, 219.611, 33.657, -58.879, 120.955]

A: [-0.126  0.784  0.12  -0.21   0.432]
****
Q: [151.747, -11.772, 33.997, 159.476, 2.421, 50.304, 33.93, 199.524, 178.42, -24.228]

A:
[ 0.196 -0.015  0.044  0.206  0.003  0.065  0.044  0.258  0.231 -0.031]
****