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: [99.523, 213.163, 66.804, 91.768, 112.4, 63.324, -81.324, 25.787]

A: [ 0.168  0.36   0.113  0.155  0.19   0.107 -0.138  0.044]
****
Q: [214.567, 164.667, 155.245, -60.051, 98.123]

A: [ 0.375  0.288  0.271 -0.105  0.171]
****
Q: [215.273, 58.186, 140.588, 33.689, 12.512, -49.394, 81.075, 42.784, 42.097]

A:
[ 0.373  0.101  0.244  0.058  0.022 -0.086  0.141  0.074  0.073]
****
