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: [150.512, 25.615, 166.388, 23.206, 37.005, -21.969, -54.113]

A: [ 0.461  0.078  0.509  0.071  0.113 -0.067 -0.166]
****
Q: [59.693, 249.142, 26.443, 118.221, 111.603, -10.046, 169.057, 241.465, -14.514, 216.491]

A: [ 0.051  0.213  0.023  0.101  0.096 -0.009  0.145  0.207 -0.012  0.185]
****
Q: [182.034, 171.627, 28.766, -47.006]

A:
[ 0.543  0.512  0.086 -0.14 ]
****