#include <bits/stdc++.h>   using namespace std;   using ll = long long;   const int MOD = 1e9 + 7;   int main() {     cin.tie(0)->sync_with_stdio(0);     int t;     cin >> t;     while (t--) {       string s;       cin >> s;       vector<int> r;       for (string t : { twone ,  one ,  two }) {         for (size_t pos = 0; (pos = s.find(t, pos)) != string::npos;) {           s[pos + t.length() / 2] =  ? ;           r.push_back(pos + t.length() / 2);         }       }       cout << r.size() << endl;       for (auto rr : r) cout << rr + 1 <<    ;       cout << endl;     }   }   