#!/usr/bin/env python3

from math import sqrt

n, x = map(int, input().split())
a = list(map(int, input().split()))
sm = sum([y*y for y in a])
if sm == 0:
    print(*([0]*n), sep=' ')
else:
    normalize = sqrt(x*n)/sqrt(sm)
    a_normal = [y*normalize for y in a]
    print(*a_normal, sep=' ')