#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int cnt = 0;
  vector<int> l, r, temp;
  vector<vector<int>> ans;
  int t = 1;
  while (!s.empty()) {
    l.clear();
    r.clear();
    temp.clear();
    cnt = 0;
    for (int i = 0; i < s.length(); i++) {
      if (s[i] == '(') {
        l.push_back(i);
      } else {
        r.push_back(i);
      }
    }
    int i = 0;
    int j = r.size() - 1;
    while (i < l.size() && j >= 0 && l[i] < r[j]) {
      cnt++;
      i++;
      j--;
    }
    if (cnt == 0) {
      break;
    } else {
      for (int i = 0; i < cnt; i++) {
        temp.push_back(l[i]);
      }
      for (int i = r.size() - cnt; i < r.size(); i++) {
        temp.push_back(r[i]);
      }
      for (int i = temp.size() - 1; i >= 0; i--) {
        s.erase(s.begin() + temp[i]);
      }
      ans.push_back(temp);
    }
  }
  cout << ans.size() << "\n";
  for (int i = 0; i < ans.size(); i++) {
    cout << ans[i].size() << "\n";
    for (int j = 0; j < ans[i].size(); j++) {
      cout << ans[i][j] + 1 << " ";
    }
    cout << "\n";
  }
}
