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]: [195.848, 166.539, 226.032, 150.247, 108.638, 62.37, 181.928, 246.972]
[A]: [0.146 0.124 0.169 0.112 0.081 0.047 0.136 0.185]


[Q]: [197.529, 231.433, -76.427, 131.877, 144.985, -86.421, -67.924]
[A]: [ 0.416  0.487 -0.161  0.278  0.305 -0.182 -0.143]


[Q]: [128.569, 138.105, 210.574]
[A]:
[0.269 0.289 0.441]