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]: [-69.316, 176.216, -54.976]
[A]: [-1.335  3.394 -1.059]


[Q]: [50.788, 1.827, 168.905, 31.33]
[A]: [0.201 0.007 0.668 0.124]


[Q]: [147.941, 180.182, 23.526, 38.567, 109.128, 185.062, 15.598, -16.034]
[A]:
[ 0.216  0.263  0.034  0.056  0.16   0.271  0.023 -0.023]