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: [112.224, 166.663, 38.843, 87.432]

A: [0.277 0.411 0.096 0.216]
****
Q: [166.025, 235.078, 2.082, -93.916, -96.865, 81.476, 212.551, 140.357]

A: [ 0.257  0.363  0.003 -0.145 -0.15   0.126  0.329  0.217]
****
Q: [166.946, 142.467, 118.038, 39.848, -57.237, 60.027, -45.171, 54.113]

A:
[ 0.349  0.297  0.246  0.083 -0.119  0.125 -0.094  0.113]
****