N, K, S = map(int, input().split())
if N==K:
  A = [S]*N
  print(*A)
  exit()
if S%2 == 0:
  a = S//2
  b = S//2
else:
  a = S//2+1
  b = S//2
A = [0]*N
for i in range(N):
  if i%2==0:
    A[i] = a
  else:
    A[i] = b
cnt = 0
for i in range(N-1):
  if A[i]+A[i+1] == S:
    cnt += 1
ind = N-1
while cnt > K:
  if S == 10**9:
    A[ind] = S-1
  else:
    A[ind] = S+1
  cnt -= 1
  ind -= 1
print(*A)