#!/usr/bin/env python3

n, k, s = map(int, input().split())
ans = [ 0 for _ in range(n) ]

for i in range(n):
    if i < k:
        ans[i] = s
    else:
        if s & 1:
            ans[i] = 0
        else:
            ans[i] = 1


print(" ".join(map(str, ans)))

