#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100 * 1000 + 10, N = 100 + 10;
int t, a[MAXN];
vector<int> vec;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  cin >> t;
  while (t) {
    vec.clear();
    string s;
    cin >> s;
    int cnt = 0;
    int n = s.size();
    for (int i = 0; i < (int)s.size(); i++) {
      if (s[i] == 'o') {
        if (i - 2 > -1 && s[i - 2] == 't' && s[i - 1] == 'w') {
          if (i + 2 < n && s[i + 1] == 'n' && s[i + 2] == 'e') {
            vec.push_back(i);
            i += 2;
            cnt++;
          } else {
            cnt++;
            vec.push_back(i - 1);
          }
        } else if (i + 2 < n && s[i + 1] == 'n' && s[i + 2] == 'e') {
          cnt++;
          vec.push_back(i + 1);
        }
      }
    }
    cout << cnt << endl;
    for (auto x : vec) cout << x + 1 << ' ';
    cout << endl;
    t--;
  }
  return 0;
}
