#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  vector<vector<long long> > pr;
  while ((long long)s.size()) {
    long long l = 0, r = (long long)s.size() - 1;
    vector<long long> ans;
    while (l < r) {
      if (s[l] != '(') l++;
      if (s[r] != ')') r--;
      if (l >= r) break;
      if (s[l] == '(' && s[r] == ')') {
        ans.push_back(l + 1);
        ans.push_back(r + 1);
        s[l] = '.';
        s[r] = '.';
      }
    }
    if (!(long long)ans.size())
      break;
    else {
      sort(ans.begin(), ans.end());
      pr.push_back(ans);
    }
  }
  if (!(long long)pr.size())
    cout << 0;
  else {
    cout << (long long)pr.size() << '\n';
    for (auto v : pr) {
      cout << (long long)v.size() << '\n';
      for (auto i : v) cout << i << ' ';
      cout << '\n';
    }
  }
  return 0;
}
