Definition: 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: [240.959, 86.964, 224.296, 218.614, 119.288, 245.17, -27.242, 137.92]

[ 0.193  0.07   0.18   0.175  0.096  0.197 -0.022  0.111]