You will be given a definition of a task first, then some input of the task.
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.

[52.785, 12.789, -54.828, 164.311, 167.549, 228.17, 248.694, 135.732]
Output:
[ 0.055  0.013 -0.057  0.172  0.175  0.239  0.26   0.142]