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

d = Array.new(n+1)
i = 0
j = 1
while j <= n
    j += 1 while s[j] == ?1
    i += 1 while s[i] == ?1 || i + m < j

    break if i == j
    d[j] = i
    j += 1
end

if d[n]
    ans = []
    while n != 0
        ans.unshift(n - d[n])
        n = d[n]
    end
    puts ans * " "
else
    puts -1
end