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]: [127.429, 95.716, 248.623, 78.199, -58.769, 134.098, -23.614]
[A]: [ 0.212  0.159  0.413  0.13  -0.098  0.223 -0.039]


[Q]: [-83.508, -45.974, 241.098, 15.559, 178.455, 21.679, 107.872, 240.156, 244.933]
[A]: [-0.091 -0.05   0.262  0.017  0.194  0.024  0.117  0.261  0.266]


[Q]: [124.511, 124.68, -54.322, -99.098, -22.767, 217.306]
[A]:
[ 0.429  0.429 -0.187 -0.341 -0.078  0.749]