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: [1.805, -60.45, 43.643, -2.569, 163.214]

A: [ 0.012 -0.415  0.3   -0.018  1.121]
****
Q: [31.697, -83.277, 4.13, -50.027, -84.58, -31.329, -95.988, -35.997, 111.188]

A:
[-0.135  0.356 -0.018  0.214  0.361  0.134  0.41   0.154 -0.475]
****