from fractions import Fraction as F n,m,*W = map(int,open(0).read().split()) if m == 0: print(*[0]*n) exit() x = F(sum(W),m) print(*[w/x for w in W])