#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll OO = 1e18;
const int N = 1e5 + 5;
int di[8] = {1, 0, -1, 0, -1, 1, -1, 1};
int dj[8] = {0, -1, 0, 1, 1, 1, -1, -1};
string ys = "YES", no = "NO";
void fast() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
}
int main() {
  fast();
  int q;
  cin >> q;
  while (q--) {
    string s;
    cin >> s;
    s += "######";
    vector<int> ans;
    for (int i = 0; i < s.size() - 2; i++) {
      if (s[i] == 'o' && s[i + 1] == 'n' && s[i + 2] == 'e') {
        s[i + 1] = '#';
        ans.push_back(i + 2);
      } else if (s[i] == 't' && s[i + 1] == 'w' && s[i + 2] == 'o') {
        if (i + 4 < s.size()) {
          if (s[i + 3] == 'n' && s[i + 4] == 'e') {
            s[i + 2] = '#';
            ans.push_back(i + 3);
          } else {
            s[i + 1] = '#';
            ans.push_back(i + 2);
          }
        } else {
          s[i + 1] = '#';
          ans.push_back(i + 2);
        }
      }
    }
    cout << ans.size() << "\n";
    for (auto i : ans) cout << i << " ";
    cout << "\n";
  }
}
