Instructions: 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.
Input: [37.251, 21.364, -26.815, 17.139, 150.027, -24.2, -57.026, 77.704, -76.851, 30.668]
Output:
[ 0.25   0.143 -0.18   0.115  1.005 -0.162 -0.382  0.521 -0.515  0.205]