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]: [103.175, 172.942, 74.406]
[A]: [0.294 0.493 0.212]


[Q]: [246.416, 141.896, 147.875, 175.016, 52.56, 153.664]
[A]: [0.269 0.155 0.161 0.191 0.057 0.167]


[Q]: [-63.039, -54.574, -84.669, 107.894, 171.248, 148.507, -43.695]
[A]:
[-0.347 -0.3   -0.466  0.594  0.943  0.817 -0.241]