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]: [24.112, 124.142, 193.374, 26.609, 228.483, 53.107, 153.075, 23.176, 87.534]
[A]: [0.026 0.136 0.212 0.029 0.25  0.058 0.168 0.025 0.096]


[Q]: [112.058, 77.578, 242.343, -59.165, 15.974, 225.295]
[A]: [ 0.182  0.126  0.395 -0.096  0.026  0.367]


[Q]: [7.973, 194.001, 34.136]
[A]:
[0.034 0.822 0.145]


