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]: [48.926, 114.037]
[A]: [0.3 0.7]


[Q]: [200.637, -31.315, 78.428]
[A]: [ 0.81  -0.126  0.317]


[Q]: [-21.551, 126.135, -6.275, 238.677, 228.175]
[A]:
[-0.038  0.223 -0.011  0.422  0.404]