void main()
{
    int[] tmp = readln.split.to!(int[]);
    int n = tmp[0], m = tmp[1];
    string s = readln.chomp;

    int[] move;
    while (n > 0)
    {
        bool ok;
        foreach_reverse (i; 1 .. m+1)
        {
            if (n - i < 0) continue;

            if (s[n-i] == '0')
            {
                ok = true;
                n -= i;
                move ~= i;
                break;
            }
        }

        if (!ok)
        {
            break;
        }
    }

    if (n == 0)
    {
        reverse(move);
        move.to!(string[]).join(" ").writeln;
    }
    else
    {
        writeln(-1);
    }
}

import std.stdio;
import std.string;
import std.array;
import std.conv;
import std.algorithm;
import std.range;
import std.math;
import std.numeric;
import std.container;
import std.typecons;
import std.ascii;
import std.uni;