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: [103.087, 58.741, -19.804, 127.697, 112.465, 71.946, 62.819, -14.241, -29.798, -7.881]
Output:
[ 0.222  0.126 -0.043  0.275  0.242  0.155  0.135 -0.031 -0.064 -0.017]