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]: [17.011, 227.693, 182.857]
[A]: [0.04  0.533 0.428]


[Q]: [187.044, 178.021, 103.289, 82.24]
[A]: [0.34  0.323 0.188 0.149]


[Q]: [-51.665, 190.287, -37.191, 9.523, 33.993]
[A]:
[-0.356  1.313 -0.257  0.066  0.235]