#include #include #include #include #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; typedef long long ll; using ull = unsigned long long; template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } //template T gcd(T a, T b) { a = abs(a), b = abs(b); while (b > 0) { tie(a, b) = make_pair(b, a % b); }return a; } //mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count()); constexpr long long INF = 1LL << 60; constexpr int inf = 1000000007; //constexpr long long mod = 1000000007LL; constexpr long long mod = 998244353; vector> RLE(vector& s) { ll cnt = 0; vector> res; for (ll i = 0; i < s.size(); i++) { cnt++; if (i == (ll)s.size() - 1) { res.push_back(make_pair(s[i], cnt)); break; } if (s[i] != s[i + 1]) { res.push_back(make_pair(s[i], cnt)); cnt = 0; } } return res; } struct mint { long long x; mint(long long x = 0) :x((x% mod + mod) % mod) {} mint& operator+=(const mint a) { if ((x += a.x) >= mod) x -= mod; return *this; } mint& operator-=(const mint a) { if ((x += mod - a.x) >= mod) x -= mod; return *this; } mint& operator*=(const mint a) { (x *= a.x) %= mod; return *this; } mint operator+(const mint a) const { mint res(*this); return res += a; } mint operator-(const mint a) const { mint res(*this); return res -= a; } mint operator*(const mint a) const { mint res(*this); return res *= a; } mint pow(ll t) const { if (!t) return 1; mint a = pow(t >> 1); a *= a; if (t & 1) a *= *this; return a; } // for prime mod mint inv() const { return pow(mod - 2); } mint& operator/=(const mint a) { return (*this) *= a.inv(); } mint operator/(const mint a) const { mint res(*this); return res /= a; } }; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int n, K; cin >> n >> K; string s; cin >> s; queue q; for (int i = n - 1; i >= 1; i--) { while (!q.empty() and q.front() > i + K) q.pop(); if (q.empty()) { if (s[i - 1] == 'o') q.emplace(i); } } while (!q.empty() and q.front() > K) q.pop(); if (q.empty()) cout << 0 << "\n"; else { while (!q.empty()) { int cur = q.front(); cout << cur << "\n"; q.pop(); } } }