#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    long long i;
    vector<long long> v;
    for (i = 0; i < s.length(); i++) {
      if (s[i] == 't' && s[i + 1] == 'w' && s[i + 2] == 'o' &&
          s[i + 3] == 'n' && s[i + 4] == 'e') {
        v.push_back(i + 3);
        i += 4;
      } else {
        if (s[i] == 't' && s[i + 1] == 'w' && s[i + 2] == 'o') {
          v.push_back(i + 2);
        } else if (s[i] == 'o' && s[i + 1] == 'n' && s[i + 2] == 'e') {
          v.push_back(i + 2);
        }
      }
    }
    cout << v.size() << endl;
    for (i = 0; i < v.size(); i++) {
      cout << v[i] << " ";
    }
    cout << endl;
  }
  return 0;
}
