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.

[247.779, 117.155, 108.624, -36.981, 2.077, -50.059, 76.777, 60.968]
Output:
[ 0.471  0.223  0.206 -0.07   0.004 -0.095  0.146  0.116]