Problem: Vus the Cossack has real numbers . It is known that the sum of all numbers is equal to . He wants to choose a sequence the size of which is such that the sum of all numbers is and each is either or . In other words, equals rounded up or down. It is not necessary to round to the nearest integer.
For example, if , then can be equal, for example, to .
Note that if is an integer, then there is no difference between and , will always be equal to .
Help Vus the Cossack find such sequence!
Input Format: The first line contains one integer () — the number of numbers.
Each of the next lines contains one real number (). It is guaranteed that each has exactly digits after the decimal point. It is guaranteed that the sum of all the numbers is equal to .
Output Format: In each of the next lines, print one integer . For each , must be met.
If there are multiple answers, print any.
Note: The first example is explained in the legend.
In the second example, we can round the first and fifth numbers up, and the second and third numbers down. We can round the fourth number neither up, nor down.