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]: [229.904, 41.361, -38.768, 166.156, 187.51, 91.581, -43.883, 102.522, 198.448, 206.706]
[A]: [ 0.201  0.036 -0.034  0.146  0.164  0.08  -0.038  0.09   0.174  0.181]


[Q]: [196.669, -36.083, 152.375, -91.018, -29.088, 134.933, 66.316, 231.48, 92.271, 52.699]
[A]: [ 0.255 -0.047  0.198 -0.118 -0.038  0.175  0.086  0.3    0.12   0.068]


[Q]: [24.351, 97.992]
[A]:
[0.199 0.801]