N, M = gets.split.map(&:to_i)
S = gets.strip

(puts -1; exit ) if S =~ /1{#{M}}/
t = N
is = [t]
loop do
  j = t - M
  break if j <= 0
  j += 1 while S[j] == '1'
  is << t = j
end
puts (is.push(0)).reverse.each_cons(2).map{|a, b| b - a}.join(' ')