#CCBCHBAHAI0000050. Độ lệch so với trung bình (Deviation from the Mean)

Độ lệch so với trung bình (Deviation from the Mean)

Độ lệch so với trung bình (Deviation from the Mean)

Source: Schaum's Outline of Programming with C

Version: Phuoc Hung OJ Extended

Problem

Given an integer array a0,a1,…,an−1a_0,a_1,\ldots,a_{n-1}.

Its arithmetic mean is

μ=1n∑i=0n−1ai.\mu=\frac{1}{n}\sum_{i=0}^{n-1}a_i.

For each index ii, define the signed deviation from the mean as

di=ai−μ.d_i=a_i-\mu.

Print d0,d1,…,dn−1d_0,d_1,\ldots,d_{n-1}, each with exactly 6 digits after the decimal point.

Input

The first line contains integer nn. The second line contains exactly nn integers a0,a1,…,an−1a_0,a_1,\ldots,a_{n-1}.

Output

Print the nn real values d0,d1,…,dn−1d_0,d_1,\ldots,d_{n-1} on one line, separated by spaces, each with exactly 6 digits after the decimal point.

Subtask

Subtask 1 (100 points): 1≤n≤2⋅1051\le n\le2\cdot10^5; ∣ai∣≤106|a_i|\le10^6.

Example

Input

4
1 2 3 6

Output

-2.000000 -1.000000 0.000000 3.000000

Explanation

Here μ=(1+2+3+6)/4=3\mu=(1+2+3+6)/4=3, so the deviations are −2,−1,0,3-2,-1,0,3.