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]: [119.841, 171.151, 38.877]
[A]: [0.363 0.519 0.118]


[Q]: [123.275, 156.341, 242.486]
[A]: [0.236 0.299 0.464]


[Q]: [211.012, 229.624, 213.301, -31.721, 97.762, 92.738, 164.696]
[A]:
[ 0.216  0.235  0.218 -0.032  0.1    0.095  0.169]