def main():
    n, k, s = map(int, input().split())
    if k == 0:
        if s != 10**9:
            print(*([10**9]*n))
        else:
            print(*([1]*n))
    elif k == n:
        print(*([s]*n))
    else:
        if s == 10**9:
            ans = ([s]*k)+([1]*(n-k))
        else:
            if k % 2 == 1:
                ans = [s-1, 1]*((k+1)//2)+[10**9]*(n-k-1)
            else:
                ans = [s-1, 1]*(k//2)+[s-1]+[10**9]*(n-k-1)
        print(*ans)


main()
