In this task, you have to normalize a sequence of real numbers.
The first line of the input contains the number of elements in the sequence (N). The next N lines each contain an element of the sequence.
The output should have N lines containing the same sequence of numbers as the input, but scaled with a constant, such that the sum of the squares of the numbers give 1. We will check the results with 0.001 tolerance. (The ratio between the numbers in the input and output and the sum of the squares of the numbers are checked).
in:
3 -0.834065 -0.0092335 0.10021
out:
-0.9928 -0.0109908 0.119281