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: [-97.117, -11.802, 57.096, 244.554, 14.606, 59.864, 209.204, 204.511, 5.218]

A: [-0.142 -0.017  0.083  0.356  0.021  0.087  0.305  0.298  0.008]
****
Q: [-71.706, -51.315]

A: [0.583 0.417]
****
Q: [197.283, 68.063, -23.564, 105.345, -53.72, -14.883, 185.644, 174.521, 66.365, 151.724]

A:
[ 0.23   0.079 -0.028  0.123 -0.063 -0.017  0.217  0.204  0.077  0.177]
****