Fair Robbery

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

Robin Hood is well-known for stealing from the rich and giving the stolen to the poor. But this time he'll have to resort to one-sided robbery since there are only rich people in the city he's currently staying in. There are nn rich people in this city in total, their houses are located in a row along the main street. The person living in the ii-th house has exactly a_ia\_i money.

Robin Hood has several gang members, so he is going to prepare a plan for the robbery in advance. The plan is described by an integer kk and a real number tt which mean that houses with numbers k,k+1,,nk, k + 1, \ldots, n will be robbed, and from each of them exactly the fraction of money equal to tt will be stolen. In other words, after the plan is executed, the people will have anew=\[a_1,a_2,,a_k1,(1t)a_k,(1t)a_k+1,,(1t)a_n],a^\mathrm{new} = \[a\_1, a\_2, \ldots, a\_{k-1}, (1-t)a\_k, (1-t)a\_{k+1}, \ldots, (1-t)a\_n], money left respectively. And the total amount of money stolen will be equal to b=t(a_k+a_k+1++a_n).b = t\cdot(a\_k+a\_{k+1}+\ldots+a\_{n}).

Let's denote the unfairness after the robbery as the value max(anew)min(anew)\max(a^\mathrm{new}) - \min(a^\mathrm{new}): the difference between the maximal and the minimal amounts of money people will have after the robbery.

Robin Hood's gang hasn't arrived to the city yet, so he doesn't know how many houses they'll be able to rob successfully. Help him to find out for each kk from 11 to nn, inclusive, which tt between 00 and 11, inclusive, corresponds to the minimum possible unfairness after the robbery with the plan (k,t)(k, t). If for a fixed kk the minimum unfairness can be achieved with several different values of tt, you should choose the plan that maximizes the total amount of money stolen.

입력

The first line of input contains a single integer nn --- the number of people living in the city (1n21051 \leq n \leq 2 \cdot 10^5).

The second line of input contains nn space-separated integers a_ia\_i --- the initial amount of money each townsperson has (1a_i1091 \leq a\_i \leq 10^9).

출력

Print nn real numbers t_it\_i (0t_i10 \leq t\_i \leq 1). For each kk between 11 and nn the pair (k,t_k)(k, t\_k) should denote the plan with minimal possible unfairness after the robbery among all plans with such kk, and among those --- the plan with maximal possible total amount of stolen money.

Your answer is accepted if the absolute or relative error of each printed number compared to the correct answer is not greater than 10910^{-9}.