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]: [121.797, 148.705, -20.956]
[A]: [ 0.488  0.596 -0.084]


[Q]: [-95.052, 44.855, 168.107, -59.536, 54.077, 225.341]
[A]: [-0.281  0.133  0.498 -0.176  0.16   0.667]


[Q]: [-74.05, -28.819, 68.478, 118.004]
[A]:
[-0.886 -0.345  0.819  1.411]