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.

[166.754, 127.664, 16.508, -86.602, -58.491, -6.352]
[ 1.046  0.8    0.104 -0.543 -0.367 -0.04 ]

[209.662, -62.115, 211.718, 29.872, -8.33, 158.467, 248.409, 126.24, 118.414]
[ 0.203 -0.06   0.205  0.029 -0.008  0.154  0.241  0.122  0.115]

[97.164, -89.859, 248.854]

[ 0.379 -0.351  0.971]