N,H,T=map(int,input().split()) A=list(map(int,input().split())) v=[0]*N for i in range(N): x=A[i] count=(H+x-1)//x v[i]=count from heapq import heappush,heappop S=[] for i in range(N): count=v[i] heappush(S,count*10**6+i) result=[0]*N for _ in range(T): w=heappop(S) pos=w%(10**6) count=w//(10**6) result[pos]+=1 count+=v[pos] heappush(S,count*10**6+pos) print(*result)