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]: [-52.398, 73.145, -57.086, 79.147, -50.635, 26.425, 173.059, -26.155, 34.019]
[A]: [-0.263  0.367 -0.286  0.397 -0.254  0.132  0.867 -0.131  0.171]


[Q]: [-61.977, 227.296]
[A]: [-0.375  1.375]


[Q]: [50.143, 53.275]
[A]:
[0.485 0.515]