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: [103.286, -45.97, 115.495, 210.558, -96.143, 165.996, -86.865, -78.029]

A: [ 0.358 -0.159  0.401  0.73  -0.333  0.576 -0.301 -0.271]
****
Q: [-9.657, 62.292, -6.59, -62.327, 87.926, 153.093, 31.518, 127.692, 129.156, 81.808]

A: [-0.016  0.105 -0.011 -0.105  0.148  0.257  0.053  0.215  0.217  0.138]
****
Q: [-8.261, 116.045, 126.893, -14.17, 3.988, 88.706, 50.993]

A:
[-0.023  0.319  0.348 -0.039  0.011  0.244  0.14 ]
****