Denormalization
시간 제한5초메모리 제한1024 MB
유클리드 노름으로 정규화한 뒤 소수점 12자리로 반올림한 값을 보고, 각 원소가 10000 이하이고 최대공약수가 1인 원래 정수 목록을 복원한다.
문제
Dr. Brodnik prepared a list that contained integers. No one knows what exactly these numbers represented, but it is well known that:
- for all and
- their greatest common divisor was .
Dr. Hočevar decided to do his colleague a favor and normalized the list, as he thought that it represents a vector in the -dimensional real vector space. Namely, he calculated the number and replaced Dr. Brodnik's list by . The numbers in this normalized list were also rounded to 12 decimal places for storage. We will refer to the elements of the stored normalized list as . After some time, he realized that it was a mistake and he now wishes to recover the original list . Of course, no backup of the original has been made. Since Dr. Hočevar is too busy at the moment doing more important tasks, your help will be much appreciated.
As some data was lost due to rounding, he will be happy with any reconstructed list , such that after normalization it would differ from by at most in each corresponding element.
입력
The first line of the input contains an integer , i.e. the length of the list . The -th of the following lines contains a floating-point number with exactly 12 decimal places. It is guaranteed that the input is valid, i.e. it was really obtained in the described manner from a list of integers with the properties described above.
출력
The output should contain lines containing the reconstructed integers in this order. You can output any acceptable solution as described above.
- for all
제한
- for all