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: [24.112, 124.142, 193.374, 26.609, 228.483, 53.107, 153.075, 23.176, 87.534]

A: [0.026 0.136 0.212 0.029 0.25  0.058 0.168 0.025 0.096]
****
Q: [143.387, 196.521, -97.02, 170.676, 198.728, 61.586, -58.101]

A: [ 0.233  0.319 -0.158  0.277  0.323  0.1   -0.094]
****
Q: [-3.542, 93.04, 1.997, 94.225, -31.353, -87.232, 12.242]

A:
[-0.045  1.172  0.025  1.187 -0.395 -1.099  0.154]
****
