#yuki1738 n,m=map(int,input().split()) l=list(map(int,input().split())) w=sum(l) c=w//m r=[] for i in range(n): r.append(l[i]//c) print(*r)