N = int(input())
v = sorted([int(v) for v in input().split(" ")])

ans = 0.0
ans += (v[0] + v[1]) / 2
ans = round(ans,10)
for i in range(2,N):
    print(ans,v[i])
    ans = ((ans + v[i]) / 2)
    ans = round(ans,10)

print(ans)