N,K,S=map(int,input().split())
a=[]
if S%2==0:
  for i in range(K+1):
    a.append(S//2)
  if N-K-1>0:
    for i in range(N-K-1):
      a.append(S+1)
else:
  for i in range(K//2):
    a.append(1)
    a.append(S-1)
  a.append(1)
  if K*2+(K%2)<N:
    for i in range(N-K*2-(K%2)):
      a.append(S+1)
  
      
      
print(' '.join(map(str, a)))
  