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: [118.39, -12.291, 40.382, -47.484, -55.095]

A: [ 2.697 -0.28   0.92  -1.082 -1.255]
****
Q: [19.761, -68.809, 38.9]

A: [-1.947  6.781 -3.833]
****
Q: [122.986, 240.103, 213.536, 102.987, 116.096, -97.647, 152.513, 155.703]

A:
[ 0.122  0.239  0.212  0.102  0.115 -0.097  0.152  0.155]
****