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: [143.387, 196.521, -97.02, 170.676, 198.728, 61.586, -58.101]

A: [ 0.233  0.319 -0.158  0.277  0.323  0.1   -0.094]
****
Q: [51.967, 80.616, 109.805, 30.339, 162.936, -59.313, -16.193, 61.555, 213.105]

A: [ 0.082  0.127  0.173  0.048  0.257 -0.093 -0.026  0.097  0.336]
****
Q: [-78.722, 74.79, 127.035, 128.004]

A:
[-0.313  0.298  0.506  0.51 ]
****