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]: [236.436, 107.458, -65.81, 155.073, 106.741, 120.439, 79.421, 163.684, 103.981]
[A]: [ 0.235  0.107 -0.065  0.154  0.106  0.12   0.079  0.162  0.103]


[Q]: [-59.828, 30.296, 154.848, 160.154, -97.69]
[A]: [-0.319  0.161  0.825  0.853 -0.52 ]


[Q]: [243.679, -88.181, 98.181, 191.381, 211.894, -46.57]
[A]:
[ 0.399 -0.144  0.161  0.314  0.347 -0.076]