N, K, S = map(int,input().split())

if K==0:
    list = [0 for i in range(N)]
    print(*list)

else:
    ans = [S for a in range(K)]
    ain = [S+1 for a in range(N-K)]
    ans = ans + ain
    print(*ans)
