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: [166.025, 235.078, 2.082, -93.916, -96.865, 81.476, 212.551, 140.357]

A: [ 0.257  0.363  0.003 -0.145 -0.15   0.126  0.329  0.217]
****
Q: [-85.085, -35.112, 42.653, 191.24, 67.908, -53.62, 35.584, 27.598, -63.115, -57.316]

A: [-1.203 -0.496  0.603  2.704  0.96  -0.758  0.503  0.39  -0.892 -0.81 ]
****
Q: [-76.289, 98.652, 8.364, 86.207, 59.258]

A:
[-0.433  0.56   0.047  0.489  0.336]
****