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: [-76.81, 155.294, -53.117, 198.868, 67.625]

A: [-0.263  0.532 -0.182  0.681  0.232]
****
Q: [46.09, 122.591]

A:
[0.273 0.727]
****