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: [164.913, 23.319, -37.919, -93.113, -51.549, 235.547, -31.47, -23.528, 166.323]

A: [ 0.468  0.066 -0.108 -0.264 -0.146  0.668 -0.089 -0.067  0.472]
****
Q: [-19.827, 77.587, 234.377, 197.698, 9.593, -73.61, 243.676]

A: [-0.03   0.116  0.35   0.295  0.014 -0.11   0.364]
****
Q: [-61.308, 43.506, -16.681, 201.542, 141.803, 63.925, -36.177, 154.451, 67.273]

A:
[-0.11   0.078 -0.03   0.361  0.254  0.114 -0.065  0.277  0.12 ]
****