from math import ceil
N, K, S = map(int,input().split())

if N == K:
  for i in range(K): print(S,end=" ")
else:
  for i in range(ceil(K/2)): 
    print(S-1,end=" ")
    print(1,end=" ")
  for i in range(N-ceil(K/2)*2):
    print(2,end=" ")