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]: [187.044, 178.021, 103.289, 82.24]
[A]: [0.34  0.323 0.188 0.149]


[Q]: [221.709, 167.259, 153.809, 223.655, 212.516, 108.266]
[A]: [0.204 0.154 0.141 0.206 0.195 0.1  ]


[Q]: [159.875, 35.577, 128.418]
[A]:
[0.494 0.11  0.397]