n,k,s = map(int,input().split())
if k == n:
    a = [s for _ in range(n)]
    print(*a)
else:
    if s == 1:
        a = [1 for _ in range(k)] + [10**9 for _ in range(n-k)]
        print(*a)
    elif k == 0 and s == 10**9:
        a = [10**9-1 for _ in range(n)]
        print(*a)
        exit()
    else:
        a = []
        for i in range(k+1):
            if i%2 == 0:
                a.append(s-1)
            else:
                a.append(1)

        for i in range(n-k-1):
            a.append(10**9)
        print(*a)