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: [119.841, 171.151, 38.877]

A: [0.363 0.519 0.118]
****
Q: [-18.025, 75.885, 143.488, -95.31, 184.245, -12.36, 172.632, 180.918]

A: [-0.029  0.12   0.227 -0.151  0.292 -0.02   0.273  0.287]
****
Q: [-42.312, 231.429, 15.439, -56.723, -1.288, -87.131]

A:
[-0.712  3.895  0.26  -0.955 -0.022 -1.467]
****