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]: [-23.786, -9.362, 227.991, 136.217, 225.485, -8.362, 88.428, -62.551, 98.166]
[A]: [-0.035 -0.014  0.339  0.203  0.335 -0.012  0.132 -0.093  0.146]


[Q]: [97.557, 128.689]
[A]: [0.431 0.569]


[Q]: [55.207, 201.948, 59.125, -61.663, 87.121, 75.646, 246.794, 112.931, -61.024]
[A]:
[ 0.077  0.282  0.083 -0.086  0.122  0.106  0.345  0.158 -0.085]