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]: [26.353, 248.25, -61.679, 242.486]
[A]: [ 0.058  0.545 -0.135  0.532]


[Q]: [77.096, 186.379, -96.012]
[A]: [ 0.46   1.113 -0.573]


[Q]: [29.951, -38.976, 56.818]
[A]:
[ 0.627 -0.816  1.189]