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]: [104.665, -60.395, 189.505, 184.789, -43.477]
[A]: [ 0.279 -0.161  0.505  0.493 -0.116]


[Q]: [50.788, 1.827, 168.905, 31.33]
[A]: [0.201 0.007 0.668 0.124]


[Q]: [67.572, 177.774, 190.331, -92.788, 11.058, 31.039, 176.684, -59.584]
[A]:
[ 0.135  0.354  0.379 -0.185  0.022  0.062  0.352 -0.119]