N,K,S=map(int,input().split())
A=[0 for z in range(N)]
if K==N:
  A=[S for z in range(N)]
elif S==1:
  for i in range(N):
    if i <=K-1:
      A[i]=1
    else:
      A[i]=2
else:
  for i in range(N):
    if i%2==0 and i <=K:
      A[i]=1
    elif i%2==1 and i<=K:
      A[i]=S-1
    else:
      A[i]=S+1
print(*A)