peterverebics/CodeNet_Python_118 huggingface dataset:
n, k, s = list(map(int, input().split()))

ans = [None for _ in range(n)]

for i in range(k):
    ans[i] = s
for i in range(k, n):
    ans[i] = s//2+1

print(*ans)
n, k, s = map(int, input().split())
if s == 1:
	a = [2] * n
else:
	a = [1] * n


for i in range(k):
	a[i] = s

print (*a)
N,K,S = map(int,input().split())
for i in range(1,N+1):
    if i <= K:
        print(S,end=" ")
    else:
        print(1,end=" ")
x,y,z = map(int,input().split())
s = [100000000]*x
for i in range(y):
    s[i] = z
for j in range(x):
    print(s[j])
N,K,S=map(int,input().split())

for _ in range(K):
    print(S,end=' ')
for _ in range(N-K):
    print(S+1,end=' ')
print('')
n, k, s = map(int, input().split())
A = [str(s) for i in range(k)]
B = [str(s + 1) for j in range(n - k)]
A = A + B
print(" ".join(A))
import numpy as np
n = list(map(int, input().split()))

list = np.ones(n[0])
for i in range(n[0]):
  if i < n[1]:
    list[i] = n[2]
    
list = [int(s) for s in list]
  
print(list)
N, K, S = map(int, input().split())

ans = []

for _ in range(K):
    ans.append(str(S))

for _ in range(N - K):
    ans.append(str(abs(S - 10**9)))

print(" ".join(ans))
n,k,s = map(int,input().split())
for i in range(1,n+1):
    if i <=k:
        print(s)
    elif s == 10**9:
        print(1)
    else:
        print(0)
n,k,s=map(int,input().split())
if k==0:
 l=[(s-1)]*n
 print(l)
l=[s]*k
l+=[s-1]*(n-k)
print(l)
N,K,S = map(int,input().split())
A = [0]*N
ans = [S]*K+[10**9]*(N-K)
print(*ans,sep=" ")
N,K,S=map(int,input().split())
answers=[str(S)]*K
answers_=[str(S+1)]*(N-K)
a=' '.join(answers)
b=' '.join(answers_)
if K==0:
    c=b
elif S==pow(10,9):
    answers_=['1']*(N-K)
    b = ' '.join(answers_)
    c=a+' '+b
else:
    c = a + ' ' + b
print(c)
# C - Subarray Sum
def main():
    N, K, S = map(int, input().split())
    res = [str(S)] * K + ["1" if str(S) == 10 ** 9 else str(S + 1)] * (N - K)
    print(" ".join(res))


if __name__ == "__main__":
    main()
N, K, S = map(int, input().split())

ans = [1 for _ in range(N)]
for i in range(N):
    if K > 0:
        ans[i] = S
        K -= 1
    else:
        ans[i] = S + 1

print(*ans)
N, K, S = map(int,input().split())

ans = []
for i in range(K):
    ans.append(S)
for j in range(N-K):
    ans.append(S+1)
print(*ans)
# coding: utf-8
N, K, S = map(int, input().split())
L = []
for i in range(N):
    if i < K:
        L.append(S)
    else:
        L.append(S+2)
print(*L)
N,K,S = map(int,input().split())

if S < 10**9:
  ans = [S]*K + [S+1]*(N-K)
else:
  ans = [S]*K + [1]*(N-K)
from functools import reduce
from fractions import gcd
import math
import bisect
import itertools
import sys
sys.setrecursionlimit(10**7)
input = sys.stdin.readline
INF = float("inf")


def main():
    N, K, S = map(int, input().split())
    
    A = [S]*N
    if S == 10**9:
        for i in range(N-K, N):
            A[i] = S - 1
    else:
        for i in range(N-K, N):
            A[i] = 10**9

    print(' '.join(map(str, A)))


if __name__ == '__main__':
    main()
n,k,s = map(int,input().split())

ans=[]

cnt=n-k
for i in range(cnt):
    ans.append(s)

for j in range(n-k):
    ans.append(s+1)


print(*ans)
n,k,s=map(int,input().split())
ans=[s]*k+[s-1]*(n-k)
print(*ans)
n,k,s=map(int,input().split())
ans=[]
for i in range(k):
  ans.append(s)
for i in range(n-k):
  ans.append(10**9)

print(*ans)
import sys

n, k, s = map(int, sys.stdin.readline().split())

def main():
    m = 10 ** 9
    a = [None] * n
    for i in range(k):
        a[i] = s
    for i in range(k, n):
        if s < m:
            a[i] = m
        else:
            a[i] = 1
    return a

if __name__ == '__main__':
    ans = main()
    print(ans)
n , k , s = map(int,input().split())
l = []
for i in range(k):
    l.append(s)
for i in range(n-k):
    l.append(s+1)
    
if n != 1:
    print(' '.join(map(str, l)))
elif n == 1:
    print(s)
n, k, s = map(int, input().split())

ans = [s] * k + [s + 1] * (n - k)

print(*ans)
N,K,S=map(int,input().split())
ans=[S for i in range(K)]
ans2=[S+1 for i in range(N-K)]
ans=ans+ans2
print(*ans)
N, K, S = map(int, input().split())
ans = [S]
ans.extend([0] * (K - 1))
ans.extend([S + 1] * (N - K))
print(' '.join([str(x) for x in ans]))
N, K, S = map(int, input().split())
inf = 10**20
l = [S] * K + [inf] * (N-K)
print(*l)
n,k,s = map(int,input().split())

anaume = 10**9+1

lst1 = []


lst1 += [s]*k

lst1 += [anaume]*(n-k)

print(*lst1)
N, K, S = map(int, input().split())
A = [S] * K + [S-1] * (N-K)
print(*A)
import sys
 
stdin = sys.stdin
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()
nas = lambda: stdin.readline().split()

n, k, s = na()

for i in range(n):
    if i:
        print(' ', end='')
    if i < k:
        print(s, end='')
    else:
        print(1000000, end='')

print()
N,K,S=map(int,input().split())
a=[S-1]*N
for i in range(K):a[i]=S
print(' '.join(map(str,a)))
N,K,S = map(int,input().split())
t = [100000000000]*N
for i in range(K):
    t[i] = S
print(*t)
from math import ceil
N, K, S = map(int,input().split())

if N == K:
  for i in range(K): print(S,end=" ")
else:
  for i in range(ceil(K/2)): 
    print(1,end=" ")
    print(S-1,end=" ")
  for i in range(N-ceil(K/2)*2):
    print(10**9,end=" ")
n,k,s = map(int,input().split(" "))
count = 0
ar = []
for i in range(n):
    if count == k:
        if s == 10 ** 9:
            ar.append(1)
        else:   
            ar.append(s + 1)
    else:
        ar.append(s)
        count += 1
for i in range(n-1):
    print(ar[i],end=" ")
print(ar[n-2])
N, K, S = map(int, input().split())
if K == N:
    print(*([S] * N), sep = ' ')
else:
    half1 = S // 2
    half2 = S - half1
    ans = [half1, half2] * (K // 2)
    ans += [half1]
    if K % 2:
        ans += [half2]
    rem = 1 if S == 10 ** 9 else 10 ** 9
    ans += [rem] * (N - len(ans))

    print(*ans, sep = ' ')
n, k, s = map(int, input().split())
a = [0] * n
for i in range(k):
    a[i] = s
for i in range(k, n):
    a[i] = s + 1
print(a[0], end = "")
for i in a[1:]:
    print("", i, end = "")
print()
n,k,s = map(int,input().split())
l = [s for i in range(k)]
l1 = [1 for i in range(n-k)]
print(*(l+l1))
def keyence20_c():
    N, K, S = map(int, input().split())
    arr = [S] * K + [S+1] * (N-K)
    ans = ' '.join(map(str, arr))
    print(ans)

keyence20_c()
N, K, S = map(int, input().split())

ans = []
ans += [S] * K
ans += [10**9] * (N-K)

print(ans)
N,K,S=map(int,input().split())
a=[]
if S%2==0:
  for i in range(K+1):
    a.append(S//2)
  if N-K-1>0:
    for i in range(N-K-1):
      a.append(S+1)
else:
  for i in range(K//2):
    a.append(1)
    a.append(S-1)
  a.append(1)
  if K*2+(K%2)<N:
    for i in range(N-K*2-(K%2)):
      a.append(S+1)
  
      
      
print(' '.join(map(str, a)))
N,K,S = map(int,input().split())

X = N - K + 1
if S % X == 0:
    a1 = int(S / X)
    a2 = a1
else:
    a1 = int(S // X)
    a2 = S - a1*(X-1)
    
A = []
for i in range(1,N+1):
    if i % X == 0:
        A.append(str(a2))
    else:
        A.append(str(a1))
print(" ".join(A))
n, k, s = map(int, input().split())
lis = [0]*n
for i in range(k):
    lis[i] = s
for j in range(k, n):
    lis[j] = 10 ** 5
print(" ".join(map(str, lis)))
# C - Subarray Sum
N,K,S = map(int, input().split())
A = []
count = 0
A.append(S // 2)

if S % 2 == 0:
    while count < K -1:
        A.append(S-A[0])
        count += 1
else:
    while count < K-1:
        A.append(S - A[0])
        count += 1
        if count != K -1:
            A.append(S // 2)
if N - len(A) >= 0:
    A.append(S)
    while len(A) < N:
        A.append(S+1)
else:
    pass

A=[str(a) for a in A]
A=" ".join(A)
print(A)
n,k,s = map(int,input().split())
if s == 10 ** 9:
    num = 10 ** 9-1
else:
    num = 10 ** 9
print(" ".join([str(s)]+["0" for i in range(k-1)]+[str(num) for j in range(n-k)]))
N,K,S = map(int,input().split())
t = [0]*N
for i in range(K):
    t[i] = S
print(*t)
N, K, S=map(int, input().split())
Ans=[]

for i in range(K):
    Ans.append(S)

if S!=10**9:
    for i in range(N-K):
        Ans.append(S+1)
else: 
    for i in range(N-K):
        Ans.append(1)
 
print(Ans)
N,K,S=map(int,input().split())
if S!=10**9:
  l=[S]*K+[S+1]*(N-K)
  print(" ".join(map(str,l)))
else:
  l=(str(S)+" ")*K+(str(1)+" ")*(N-K)
# -*- coding: utf-8 -*-
"""
Created on Sat Jan 18 21:04:22 2020
minsec ""
@author: masat

"""

N, K, S = map(int, input().split())

answer = []
for i in range(K):
    answer.append(S)
for i in range(N-K):
    if S >= 10*9:
        S = 0
    else:
        pass
    answer.append(S+1)

print(" ".join(map(str, answer)))
n,k,s = [int(i) for i in input().split()]

for i in range(k):
    print(s,end="")
    if i!=k-1:
        print(" ",end="")

s = 1 if s==10**0 else s+1

for i in range(k,n):
    print(" "+str(s),end="")
n, k, s = map(int, input().split())
ans = [s]*k + [s-1]*(n-k)
print(*ans)
n,k,s = map(int,input().split())
for i in range(k):
    print(s,end=" ")
for j in range(n-k):
    print(s+1)
n,k,s = map(int,input().split())

if s >= 10**9:
    ans = [0]*n
else:
    ans = [10**9] * n

for i in range(k):
    ans[i] = s

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

ans=[s]*n
for i in range(k,n):
  ans[i]=s+1
print(*ans)
N, K, S = map(int, input().split())
print(*([S]*K+[S+1 if S==10**9 else S-1]*(N-K)))
N,K,S=map(int,input().split())

ans=[S+1]*N
for i in range(K):
    ans[i]=S
print(*ans)
N, K, S = map(int, input().split())
ans = []
num = N - K + 1
cnt = 0
for i in range(1, N + 1):
    if i != num:
        ans.append(1)
        cnt += 1
    else:
        ans.append(S - cnt)
        cnt = 0
print(ans)
N, K, S = map(int, input().split())
ans = []
for i in range(N):
    if i < K:
        ans.append(S)
    else:
        ans.append(1)
print(' '.join(map(str, ans)))
N, K, S = map(int, input().split())
A = []
for i in range(K):
    A.append(S)

for i in range(N - K):
    A.append(S + 1)

print(' '.join([str(i) for i in A]))
n,k,s = map(int,input().split())
for i in range(k):
    print(s,end=" ")
for j in range(n-k):
    print(0,end=" ")
N,K,S = map(int,input().split())

ans = []

for i in range(N):
    if i < K:
        ans.append(S)
    else:
        ans.append(0)

ans1 =""
        
for j in range(N):
    ans1 = ans1 + str(ans[j])+" "

ans1 = ans1.rstrip(" ")
    
print(ans1)
n, k, s = map(int, input().split())
ans = [s+1] * n
for i in range(k):
    ans[i] = k
print(' '.join(map(lambda x: str(x), ans)))
N, K, S = map(int, input().split())
if S % 2 == 0:
    A = [int(S / 2)] * (K + 1)
    for i in range(len(A) - 1): print(A[i], end=' ')
    print(int(S / 2))
else:
    A = [int(S / 2), int(S / 2) + 1] * int(K / 2)
    for i in range(len(A)): print(A[i], end=' ')
    print(int(S / 2))
n, k, s =map(int, input().split())

if s == 10 ** 9:
    for i in range(k):
        print(s, end="")
    for i in range(n-k):
        print(1, end="")
else:
    for i in range(k):
        print(s, end="")
    for i in range(n-k):
        print(s+1, end="")
import sys
def input(): return sys.stdin.readline().rstrip()

def main():
    N, K, S = map(int, input().split())

    s20 = S // 2
    s21 = S - s20
    ans = set()
    for i in range(K):
        ans.add(s20-i)
        ans.add(s21+i)
    if 0 in ans:
        ans.remove(0)
        ans.add(10 ** 9 + 1)
    print(*ans)

if __name__ == '__main__':
    main()
n,k,s=map(int,input().split());print(*[s]*k+[1+(s<2)]*(n-k))
n,k,s = map(int,input().split())
ans = []
for i in range(k):
  ans.append(str(s))
  
for j in range(n-k):
  ans.append(str(s+1))
print(' '.join(ans))
n,k,s = map(int,input().split())

l = []

for i in range(s):
    if i <=  s-i:

        if i != 0:
            l.append(str(i))
        if (s-i) != 0:
            l.append(str(s-i))
    if len(l) == n:
        break

while len(l) < n:
    l.append(str(s+1))
print(' '.join(l))
import numpy as np
n,k,s = map(int,input().split())
a=np.arange(n)
a[:k]=s
a[k:]=s+1
for s in a:
  print(s, end =" ")
n,k,s=map(int,input().split())
a=[s]*(k)
for i in range(n-k):
    a.append((s+1)%(10**9+7))
b=[]
for i in range(n):
    b.append(str(a[i]))
print(" ".join(b))
n,k,s = map(int, raw_input().split())
r = [s] * k 
if s:
	for i in range(n - k): r.append(0)
else:
	for i in range(n - k): r.append(1)

for a in r: print a,
n, k, s = map(int, input().split())
a = []

for i in range(k):
    a.append(s)

for i in range(n-k):
    a.append(s+1)

print(a)
N, K, S = map(int, input().split())
amax = 10**9

ans = [S for _ in range(K)] + [(S+1)%amax for _ in range(N-K)]
print(ans)
N,K,S=map(int,input().split())

A=[]
for i in range(K):
    A.append(S*(i+1))
for j in range(K,N):
    A.append(S*(j+1)+(j-K+1))

B=[A[0]]*N
for i in range(1,N):
    B[i]=A[i]-A[i-1]

print(' '.join(list(map(str,B))))
n,k,s=map(int,input().split())
a=[]

if (s != 10**9):

    for i in range(k):
        a.append(s)

    for j in range(k,n):
        a.append(s+1)

    b=map(str,a)

    print(" ".join(b))

else:
    for i in range(k):
        a.append(s)
    for j in range(k+1,n):
        a.append(1)

    b=map(str,a)

    print(" ".join(b))
import math


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


print(n,k,s)

for i in range(k):
    print(s,end=" ")


blank = pow(10,9)-1
if s == blank:
    blank = 1

for i in range(k,n):
    text = " "
    if  i == n-1:
        text = ""
    print(blank,end=text)
print()
N, K, S = map(int, input().split())

l = []
for i in range(K):
    l.append(str(S))

for i in range(N-K):
    l.append(str(-1))

print(' '.join(l))
import sys
input = sys.stdin.readline
n,k,s=map(int,input().split())
if k==0:
    if s<10**9:
        a=s+1
    else:
        a=s-1
    ans=[]
    for i in range(n):
        ans.append(a)
    print(*ans)
    exit()
ans=[]
for i in range(n-k):
    ans.append(1 if s!=1 else 2)
for i in range(k):
    ans.append(s)
print(*ans)
N,K,S=map(int,input().split())

if S==10**(19):
    ans=[S-1]*N
else:
    ans=[S+1]*N
for i in range(K):
    ans[i]=S
print(*ans)
def main():
    N, K, S = map(int, input().split())

    ans = []
    for _ in range(K):
        ans.append(str(S))

    for _ in range(N - K):
        ans.append(str(S - 1))

    print(" ".join(ans))


main()
import sys
read = sys.stdin.read
readlines = sys.stdin.readlines
def main():
    """
    sum[Al,,,Ar] = Sの部分和がちょうどK個。
    """
    n, k, s = map(int, input().split())
    if n == k:
        r = [s] * k
    else:
        r = [s] * k + [1000000000] * (n - k)
    print(*r, sep=' ')

if __name__ == '__main__':
    main()
N, K, S = map(int, input().split())
ans = [S]*K
ans.extend([0]*(N-K))

print(" ".join(map(str, ans)))
N, K, S = map(int, input().split())

A = [0]*N

for i in range(K):
    A[i] = S
    
for j in range(K, N):
    A[j] = S+j+1
    
print(*A)
N, K, S = map(int, input().split())
arr = [float('inf')] * N
for i in range(K):
    arr[i] = S
print(arr)
n, k, s = map(int, input().split())
ans = [s] * k
ex = [s//2+1] * (n-k)
ans.extend(ex)
print(ans)
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
N,K,S=map(int,input().split())

if S==10**9:
	for i in range(K):
		print(10**9)
	for j in range(N-K):
		print(1)

for j in range(N-K):
	print(S+1)
for i in range(K):
	print(S)
def main():
    n, k, s = map(int, input().split())
    ans = [str(s)] * k + [str(s + 1)] * (n - k) if k != 10 ** 9 else [str(s)] * k + ['1'] * (n - k)
    print(' '.join(ans))


if __name__ == '__main__':
    main()
n,k,s = map(int,input().split(" "))
ar = []
for i in range(k):
    ar.append(s)
for i in range(n-k):
    ar.append(s + 1)
for i in range(n-1):
    print(ar[i],end=" ")
print(ar[n-1])
# -*- coding: utf-8 -*-
"""
Created on Sat Jan 18 21:04:22 2020

@author: masat

"""

N, K, S = map(int, input().split())

answer = []

for i in range(K):
    answer.append(S)
for i in range(N-K):
    answer.append(S+1)
    pass

print(" ".join(map(str, answer)))
from sys import stdin

N, K, S = [int(x) for x in stdin.readline().rstrip().split()]

ans = [S] * K
ans.extend([0] * (N - K))

print(*ans)
N , K ,S =map(int,input().split())
if S == 10**9:
  ans = [S]*K  + [10**9]*(N-K)
else:
  ans = [S]*K + [1]*(N-K)
print(" ".join(map(str,ans)))
N, K, S = map(int, input().split())

A = [0]*N

for i in range(K):
    A[i] = S
    
for j in range(K, N):
    A[j] = j+1
    
print(*A)
# C - Subarray Sum
n,k,s=map(int,input().split())
a=[]
a+=[s]*k
a+=[s+1]*(n-k)
print(*a)
N, K, S = map(int, input().split())
ret = [10 ** 9 + 7] * N
for i in range(K):
    ret[i] = S

print(' '.join([str(i) for i in ret]))
n,k,s = map(int, input().split())
ans = []
if s*k >= 10**9:
  x = s//2
  y = s-x
  for _ in range(k):
    ans += [x,y]
  if len(ans)<n:
    for _ in range(n-len(ans)):
      ans.append(1)
else:
  ans = [s for _ in  range(k)]
  for _ in range(n-k):
    ans.append(s+1) 
print(" ".join(map(str, ans)))
n, k, s = map(int,input().split())

ans = [s] * k + [10**9+1] * (n-k)
print(ans)
N, K, S = map(int, input().split())

l = []
for i in range(K):
    l.append(str(S))

for i in range(N-K):
    l.append(str(S-1))

print(' '.join(l))
a,b,c=list(map(int,input().split()))
def main3(a,b,c):
    s=[]
    for i in range(a):
        if i<=b:
            s.append(c)
        else:
            if c==10**9:
                s.append(1)
            else:
                s.append(c+1)
    for i in s:
      print(*s,sep=" ")
             
main3(a,b,c)
n,k,s=map(int,input().split())
if k==0:
    ans=[s+1]*n
else:
    ans=[s]*k+[s+1]*(n-k)
print(*ans)
n,k,s=map(int,input().split())
a=[s]*k
if s!=10**9:
    a+=[10**9]*(n-k)
    print(a)
else:
    b=[10**9]*k+[1]*(n-k)
    print(b)
N,K,S=map(int,input().split())
a=[]

for i in range(K):
  a.append(S)

if N>len(a):
  for i in range(N-len(a)):
    a.append(S+1)
      
print(' '.join(map(str, a)))
n , k , s =map(int,input().split())
list=[]
if n == k:
    for i in range(n):
        list.append(s)
    print(*list)
else :
    for i in range(k):
         list.append(s)
    for i in range(n-k):
         list.append(1)
    print(*list)
n,k,s=map(int,input().split())
gu=s//2
ki=s-gu
tmp=abs(10*9-gu)
for i in range(n):
    if i==k+1:
        print((str(tmp)+" ")*(n-k-1))
        exit()
    if i%2==0:
        print(gu,end=" ")
    elif i%2==1:
        print(ki,end=" ")
n,k,s = map(int,input().split())
ans_l = []
count = 0
for i in range(n):
    if count != k:
        ans_l.append(str(s))
        count += 1
    else:
        ans_l.append(str(s+1))
print(" ".join(ans_l))
n,k,s=map(int,input().split())
gu=s//2
ki=s-gu
tmp=0
if abs(10**9-s)<abs(1-s):
    tmp=1
else :
    tmp=10**9
if k==0:
    print((str(tmp)+" ")*n)
    exit()
for i in range(n):
    if i==k+1:
        print((str(tmp)+" ")*(n-k-1))
        exit()
    if i%2==0:
        print(gu,end=" ")
    elif i%2==1:
        print(ki,end=" ")
from sys import stdin
#n = int(stdin.readline().rstrip())
#l = list(map(int, stdin.readline().rstrip().split()))
n,k,s = map(int, stdin.readline().rstrip().split())
#S = [list(map(int, stdin.readline().rstrip().split())) for _ in range(h)]#hの定義を忘れずに

for i in range(k):
    print(s, end=" ")

for i in range(n-k):
    if i == n-k-1:
        print(s+1)
    else:
        print(s+1, end=" ")
n,k,s=map(int,input().split())

a=[]
for i in range(k):
    a.append(s)
for g in range(n-k):
    a.append(10**10)

print(*a)
# -*- coding: utf-8 -*-
n,k,s = map(int, input().split())

ans = [s]*k + [1]*(n-k)
print(*ans)
# imports
def main():
    N, K, S = list(map(int, input().split()))

    arr = [] 
    for i in range(0, K):
        arr += [S]
    while len(arr) < N:
        arr += [0]
    for a in arr:
      print(a)

if __name__ == "__main__":
    main()
N, K, S = map(int, input().split())
if N==K:
  A = [S]*N
  print(*A)
  exit()
if S%2 == 0:
  a = S//2
  b = S//2
else:
  a = S//2+1
  b = S//2
A = [0]*N
for i in range(N):
  if i%2==0:
    A[i] = a
  else:
    A[i] = b
cnt = 0
for i in range(N-1):
  if A[i]+A[i+1] == S:
    cnt += 1
ind = N-1
while cnt > K:
  if S == 10**9:
    A[ind] = S//3
  else:
    A[ind] = S+1
  cnt -= 1
  ind -= 1
print(*A)
n, k, s = map(int, input().split()) 
su = []
for i in range(n):
  su.append(s)

if s>n-k:
  t = n-k
else:
  t = n
for i in range(n-k):
  su[i] = s+1

print(*su)
N,K,S=map(int,input().split(' '))
ans=[S if i < K else S+1 for i in range(N)]
for i in ans:
    print(i,"",end="")
n,k,s = map(int,input().split())
ls = [s+1]*n
for i in range(k):
    ls[i] = s
print(*ls)
n, k, s = map(int, input().split())
l = [s] * k + [s+1] * (n-k)
print(*l)
import numpy as np
n, k, s = map(int, input().split())

if s % 2 == 0:
    ans = [s // 2] * (k + 1)
elif k % 2 == 0:
    ans = [s // 2, s // 2 + 1] * (k // 2) + [s // 2]
else:
    ans = [s // 2, s // 2 + 1] * (k // 2 + 1)

print(*ans)
n,k,s = [list(map(int, s.split())) for s in open(0)][0]
hoge = 1
if s == 1:
    hoge = 2
ans = [s] * k + [hoge] + [0] * (n-k-1)
for x in ans:
    print(x, end=" ")
n,k,s = map(int,input().split())
ans = [10**9+1]*n
for i in range(k):
    ans[i] = s
print(" ".join(map(str,ans)))
n,k,s=map(int,input().split())
if k==0:
    for i in range(n):
        print(s+1,end=" ")
else:
    li=[]
    for j in range(k):
        li.append(s)
    for j in range(n-k):
        li.append(s+1)
    for j in li:
        print(j,end=" ")
n,k,s = map(int, input().split())

ans = ""
if s !=10**9:
    for i in range(k):
        ans = ans + str(s) + " "
    for i in range(n-k):
        ans = ans + str(10**9)
    print(ans.strip())
else:
    for i in range(k):
        ans = ans + str(s) + " "
    for i in range(n-k):
        ans = ans + str(1) + " "
    print(ans.strip())
n, k, s = map(int, input().split())

if k == 0:
    ans = [s]*n
elif s == 1:
    ans = [1]*n
else:
    if n%k == 0:
        ans = [s-1, 1]*(n//k)
    else:
        ans = [s-1, 1]*(n//k) + [s-1, 1]*(n%k)
        ans = ans[:n]

print(ans)
n, k, s = map(int, input().split())
a = []
for _ in range(k):
        a.append(str(s))
for _ in range(n-k):
        a.append(str(s+1))
ans = ' '.join(a)
print(ans)
# C - Subarray Sum
N,K,S = map(int, input().split())
A = []
count = 0
if N == 1:
    A.append(S)
    A = [str(a) for a in A]
    A = " ".join(A)
    print(A)
    exit()
else:
    while count < K:
        A.append(S)
        count += 1

    if N - len(A) > 0:
        while len(A) < N:
            A.append(S + 1)
    else:
        pass
    A = [str(a) for a in A]
    A = " ".join(A)
    print(A)
N,K,S = map(int,input().split())
ans_list= [0] * N
if S != 10**9:
    for i in range(N):
        if i < K:
            ans_list[i] = S
        else:
            ans_list[i] = 10**9
else:
    for i in range(N):
        if i < K:
            ans_list[i] = S
        else:
            ans_list[i] = 1
print(ans_list)
n,k,s=map(int,input().split())
a=[]

if (s != 10**9) or (n==k):

    for i in range(k):
        a.append(s)

    for j in range(k,n):
        a.append(s+1)

    b=map(str,a)

    print(" ".join(b))

else:
    for i in range(k):
        a.append(s)
    for j in range(k+1,n):
        a.append(1)

    b=map(str,a)

    print(" ".join(b))
import sys
n,k,s = map(int,sys.stdin.readline().split())
ans = [s]*k + [s+1]*(n-k)
print(*ans)
N , K ,S =map(int,input().split())
if S == 1:
  ans = [S]*K  + [2]*(N-K)
else:
  ans = [S]*K + [1]*(N-K)
print(ans)
n, k, s = map(int, input().split())

ans = []
for i in range(k):
  ans.append(s)
for j in range(k, n):
  ans.append(1)
  
print(' '.join(list(map(str, ans))))
# coding: utf-8
import re
import math
#import numpy as np

mod=int(10**9+7)

#main
N,K,S=map(int,input().split())
A=[]
for a in range(N):
    if a<K:
        A.append(S)
    else:
        if(S<10**9):A.append(S+1)
        else: A.append(1)
print(A)
N, K, S = map(int, input().split())

ans = []
if S != 10**9:
  for i in range(K):
    ans.append(S)
  for i in range(N-K):
    ans.append(S+1)
else:
  for i in range(K):
    ans.append(S)
  for i in range(N-K):
    ans.append(S+1)
print(*ans)
n,k,s = map(int,input().split())

for i in range(k):
    print(s)
for i in range(n-k):
    print(s//(k+1))
N, K, S = map(int,input().split())

if K==0:
    list = [0 for i in range(N)]
    print(*list)
if K==N:
    list = [S for i in range(N)]
    print(*list)
else:
    ans = [S for a in range(K)]
    ain = [S+1 for a in range(N-K)]
    ans = ans + ain
    print(*ans)
import sys
 
stdin = sys.stdin
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()
nas = lambda: stdin.readline().split()

n, k, s = na()

for i in range(n):
    if i:
        print(' ', end='')
    if i < k:
        print(s, end='')
    else:
        print(100000, end='')

print()