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: [189.03, -5.087, 112.373, 75.947]

A: [ 0.508 -0.014  0.302  0.204]
****
Q: [71.224, 248.241, 139.206]

A: [0.155 0.541 0.303]
****
Q: [151.197, 61.474, 97.406, -20.167, 154.311, -22.722, 92.837, 20.814]

A:
[ 0.283  0.115  0.182 -0.038  0.288 -0.042  0.173  0.039]
****