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: [-19.577, 39.43, 228.771, 180.561, 139.963]

A: [-0.034  0.069  0.402  0.317  0.246]
****
Q: [-59.081, 28.102, 68.098, 203.21, -6.395]

A: [-0.253  0.12   0.291  0.869 -0.027]
****
Q: [-34.015, 87.707, 241.222, 221.503, 170.577, 11.175, 3.986, -58.933, 46.271]

A:
[-0.049  0.127  0.35   0.321  0.247  0.016  0.006 -0.085  0.067]
****