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]: [35.983, 105.2, 194.615]
[A]: [0.107 0.313 0.58 ]


[Q]: [167.844, 169.192, -81.096]
[A]: [ 0.656  0.661 -0.317]


[Q]: [211.071, 75.464, 15.033, 118.838, 11.878, 30.259, 128.851, 122.89]
[A]:
[0.296 0.106 0.021 0.166 0.017 0.042 0.18  0.172]