n,k,s = gets.chomp.split.map(&:to_i)


a = Array.new(n,0)
cnt = 0
for i in 0..n-1
    if cnt-1<k
        if i%2==0
            a[i] = 1
            cnt+=1
        else
            a[i] = s-1
            cnt+=1
        end
    end
end

s = a.join(" ")
puts s