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.

Q: [98.398, -55.063]

A: [ 2.271 -1.271]
****
Q: [-65.101, 50.909, 218.069]

A: [-0.319  0.25   1.07 ]
****
Q: [186.157, -1.676, 182.268, 42.313, 118.436, 31.797, -57.753, -77.34]

A:
[ 0.439 -0.004  0.43   0.1    0.279  0.075 -0.136 -0.182]
****