#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  cin >> q;
  while (q--) {
    string s;
    cin >> s;
    set<int> ans;
    for (int i = 1; i < s.size() - 1; i++) {
      if (s[i] == 'w' && s[i - 1] == 't' && s[i + 1] == 'o') {
        if (i + 3 < s.size() && s[i + 2] == 'n' && s[i + 3] == 'e') {
          ans.insert(i + 1);
          i = i + 2;
        } else
          ans.insert(i);
      } else if (s[i] == 'n' && s[i - 1] == 'o' && s[i + 1] == 'e')
        ans.insert(i);
    }
    cout << ans.size() << endl;
    set<int>::iterator it;
    for (it = ans.begin(); it != ans.end(); it++) cout << *it + 1 << " ";
    cout << endl;
  }
}
