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]: [234.077, 107.688, 115.509, 39.166, 211.514, 117.358]
[A]: [0.284 0.13  0.14  0.047 0.256 0.142]


[Q]: [44.644, 166.189, 103.21]
[A]:
[0.142 0.529 0.329]