#!/usr/bin/env python3
(n, x), amps = map(int, input().split()), list(map(float, input().split()))
if x == 0: print(" ".join(["0"] * n)), exit()
low, high = 1e-12, 1e6
while (high - low) / low > 1e-9:
    mid = (low + high) / 2
    if sum((a * mid) ** 2 for a in amps) > n*x:
        high = mid
    else:
        low = mid
print(" ".join(str(a * mid) for a in amps))
