#-------------------------------------------------------------------
import sys
def p(*_a):
  _s=" ".join(map(str,_a))
  #print(_s)
  sys.stderr.write(_s+"\n")
#-------------------------------------------------------------------
n,k,s= map(int, input().split())

A=[s+1]*n

if k==0:
	print(A)
	exit(0)

if k==1:
	A[0]=s
	exit(0)



a=s-1
b=1

for i in range(k+1):
	if i%2==0:
		A[i]=a
	else:
		A[i]=b


print(A)
