#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #if __has_include() #include using namespace atcoder; #endif #define GET_MACRO(_1, _2, _3, NAME, ...) NAME #define _rep(i, n) _rep2(i, 0, n) #define _rep2(i, a, b) for(int i = (int)(a); i < (int)(b); i++) #define rep(...) GET_MACRO(__VA_ARGS__, _rep2, _rep)(__VA_ARGS__) #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() using i64 = long long; template bool chmin(T& a, const U& b) { return (b < a) ? (a = b, true) : false; } template bool chmax(T& a, const U& b) { return (b > a) ? (a = b, true) : false; } templateistream& operator>>(istream&i,vector&v){rep(j,v.size())i>>v[j];return i;} templatestring join(vector&v){stringstream s;rep(i,v.size())s<<' '<ostream& operator<<(ostream&o,vector&v){if(v.size())o<string join(vector>&vv){string s="\n";rep(i,vv.size())s+=join(vv[i])+"\n";return s;} templateostream& operator<<(ostream&o,vector>&vv){if(vv.size())o< using pq = priority_queue, greater>; int n, k; string s; int op(int a, int b) { return min(a, b); } int e() { return int(1e9); } int main() { cin >> n >> k >> s; segtree seg(n); rep(i, n) seg.set(i, 0); rep(i, n - 1) if(s[i] == 'x') seg.set(i + 1, 1); // rep(i, n) { // cout << "i : " << i << " " << seg.get(i) << endl; // } for(int i = n - 1; i >= 1; i--) { if(s[i - 1] == 'x') continue; int left = i + 1; int right = i + k + 1; chmin(right, n); // if(left >= right) continue; int ret = seg.prod(left, right); if(ret == 0) seg.set(i, 1); else seg.set(i, 0); } vector ans; rep(i, 1, k + 1) { if(seg.get(i) == 0) ans.push_back(i); } if(ans.size()) for(auto i : ans) cout << i << endl; else cout << 0 << endl; return 0; }