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]: [10.415, 115.448, 48.253, -29.927, -99.808, 100.066, 210.071, 233.739, 247.704]
[A]: [ 0.012  0.138  0.058 -0.036 -0.119  0.12   0.251  0.28   0.296]


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


[Q]: [44.671, 122.159, -74.889, 191.966, -20.139, 56.108, -98.532, 221.649]
[A]:
[ 0.101  0.276 -0.169  0.433 -0.045  0.127 -0.222  0.5  ]


