n,k,m = map(int,input().split())
if m % 2 == 0:
    for i in range(k+1):
        print(m//2,end=" ")
    for j in range(k+1,n):
        if n == m//2:
            print(m//2-1,end=" ")
        else:
            print(m//2+1,end=" ")
else:
    if k % 2 == 1:
        for i in range(k//2+1):
            print(m//2,m//2+1,end=" ")
        if m//2 == 1:

            for i in range((k//2+1)*2,n):
                print(m//2+1,end=" ")
        else:
            for i in range((k//2+1)*2,n):
                print(1,end=" ")
    else:
        for i in range(k//2):
            print(m//2,m//2+1,end=" ")
        print(m//2,end=" ")
        if m//2 == 1:
    
            for i in range((k//2+1)*2-1,n):
                print(m//2+2,end=" ")
        else:
            for i in range((k//2+1)*2-1,n):
                print(1,end=" ")
