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]: [242.579, 120.747]
[A]: [0.668 0.332]


[Q]: [187.126, 154.747]
[A]: [0.547 0.453]


[Q]: [8.252, 195.937, 145.6]
[A]:
[0.024 0.56  0.416]