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: [-82.152, 90.171, 81.645, 125.812, 58.913, 82.414, 164.646]

A: [-0.158  0.173  0.157  0.241  0.113  0.158  0.316]
****
Q: [59.693, 249.142, 26.443, 118.221, 111.603, -10.046, 169.057, 241.465, -14.514, 216.491]

A: [ 0.051  0.213  0.023  0.101  0.096 -0.009  0.145  0.207 -0.012  0.185]
****
Q: [239.148, 61.681, -43.361, -93.86, -95.167, 96.483, 22.149, -36.377]

A:
[ 1.587  0.409 -0.288 -0.623 -0.632  0.64   0.147 -0.241]
****