def main():
    N, K, S = map(int, input().split())
    if S == 1:
        print(' '.join(['1'] * K + ['0'] * (N - K)))
    else:
        if K < N:
            print(' '.join([str(S)] * K + ['1'] + ['0'] * max(0, N - K - 1)))
        else:
            print(' '.join([str(S)] * K))
main()
