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: [-47.47, -20.769, 247.392, 45.36, 8.298, -8.737, -31.714, 35.167]

A: [-0.209 -0.091  1.087  0.199  0.036 -0.038 -0.139  0.155]
****
Q: [55.207, 201.948, 59.125, -61.663, 87.121, 75.646, 246.794, 112.931, -61.024]

A: [ 0.077  0.282  0.083 -0.086  0.122  0.106  0.345  0.158 -0.085]
****
Q: [109.175, -71.264, 59.247, -46.434, 218.882, 177.405, 58.648, -98.811]

A:
[ 0.268 -0.175  0.146 -0.114  0.538  0.436  0.144 -0.243]
****