n, k, s = list(map(int, input().split()))
if n == k:
  print(s, " ", end="")
  for i in range(n - 1):
    print(0, " ", end="")
else:
  j = k + 1
  l = n - j
  for i in range(int(j/2)):
    print(1, " ", end="")
    print(s - 1, " ", end="")
    j -= 2
  if j == 1:
    print(1, " ", end="")
  for i in range(l):
    print(s-2, " ", end="")
  