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]: [-56.645, 164.309, -98.764, 38.132, 180.507]
[A]: [-0.249  0.722 -0.434  0.168  0.793]


[Q]: [-76.81, 155.294, -53.117, 198.868, 67.625]
[A]:
[-0.263  0.532 -0.182  0.681  0.232]