import math

def f(n,k,s):
  if n==k:
    return [s]*n
  u = math.ceil(s/2)-1
  v = s-u
  ls = [(u if i%2==0 else v) for i in range(n)]
  for i in range(n-k-1):
    ls[i] = s+1
  return ls

n,k,s= map(int,input().split())

ans = f(n,k,s)

s= ""

for a in ans:
  s += str(a)+" "
  
print(s)