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: [158.151, 247.626, 8.044, 118.82, 96.148, -43.926, -70.331, 30.436, 105.946]

A: [ 0.243  0.38   0.012  0.183  0.148 -0.067 -0.108  0.047  0.163]
****
Q: [148.702, 143.872, 226.132]

A: [0.287 0.277 0.436]
****
Q: [-94.377, 135.884, 179.834, 220.746]

A:
[-0.213  0.307  0.407  0.499]
****