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]: [-86.868, 78.322, 210.691]
[A]: [-0.43   0.387  1.042]


[Q]: [48.964, 5.479, 148.086, 207.527]
[A]: [0.119 0.013 0.361 0.506]


[Q]: [199.626, 37.097, 186.721, -26.409, 122.24, -84.703, 240.235]
[A]:
[ 0.296  0.055  0.277 -0.039  0.181 -0.126  0.356]