import sys
from pprint import pprint

def solve(n, k, s):
    if k == n:
        print([s] * n)
    else:
        a = [0] * n
        for i in range(n):
            if i < k+1:
                if i % 2:
                    a[i] = s - 1
                else:
                    a[i] = 1
            else:
               a[i] = 0
        print(a)


if __name__ == '__main__':
    n, k, s = map(int, sys.stdin.readline().strip().split(" "))
    solve(n, k, s)