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: [-23.786, -9.362, 227.991, 136.217, 225.485, -8.362, 88.428, -62.551, 98.166]

A: [-0.035 -0.014  0.339  0.203  0.335 -0.012  0.132 -0.093  0.146]
****
Q: [33.228, 60.194, 10.16, 221.49, -88.921]

A: [ 0.141  0.255  0.043  0.938 -0.377]
****
Q: [29.977, 206.706, 154.408, -69.713]

A:
[ 0.093  0.643  0.48  -0.217]
****