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

a = []
if k == 0:
    for _ in range(n):
        a.append(str(s - 1))
else:
    if n == k:
        for _ in range(n):
            a.append(str(s))
    else:
        if s != 1:
            for i in range(k + 1):
                if i % 2 == 0:
                    a.append(str(s - 1))
                else:
                    a.append(str(1))
            for _ in range(n - k - 1):
                a.append(str(s - 619))
        else:
            for _ in range(k):
                a.append(str(1))
            for _ in range(n - k):
                a.append(str(2))

ans = ' '.join(a)
print(ans)