#include <bits/stdc++.h>
using namespace std;
mt19937 rng(1337);
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  vector<vector<int>> ans;
  while (true) {
    int n = s.size();
    vector<int> pref(n), suff(n);
    for (int i = 0; i < n; ++i) {
      pref[i] = s[i] == '(';
      if (i > 0) pref[i] += pref[i - 1];
    }
    for (int i = n - 1; i >= 0; --i) {
      suff[i] = s[i] == ')';
      if (i + 1 < n) suff[i] += suff[i + 1];
    }
    int mx = 0, id = -1;
    for (int i = 0; i < n; ++i) {
      if (min(pref[i], suff[i]) * 2 > mx) {
        mx = min(pref[i], suff[i]) * 2;
        id = i;
      }
    }
    if (mx == 0) break;
    vector<int> del(n);
    for (int i = 0, c = 0; c < mx / 2; ++i) {
      if (s[i] == '(') {
        del[i] = 1;
        c++;
      }
    }
    for (int i = n - 1, c = 0; c < mx / 2; --i) {
      if (s[i] == ')') {
        del[i] = 1;
        c++;
      }
    }
    vector<int> cur;
    string v;
    for (int i = 0; i < n; ++i) {
      if (del[i])
        cur.push_back(i + 1);
      else
        v += s[i];
    }
    swap(s, v);
    ans.push_back(cur);
  }
  cout << ans.size() << "\n";
  for (auto i : ans) {
    cout << i.size() << "\n";
    for (auto j : i) {
      cout << j << " ";
    }
    cout << "\n";
  }
  return 0;
}
