#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  if (fopen("input.in", "r")) {
    freopen("input.in", "r", stdin);
    freopen("output.out", "w", stdout);
  }
  vector<vector<int>> ans;
  vector<int> curr;
  string s;
  cin >> s;
  int n = (int)s.size();
  for (int i = 0; i < n; i++) {
    int left = 0;
    int right = n - 1;
    curr.clear();
    while (left < right) {
      if (s[left] == ')' || s[left] == '_') {
        left++;
      } else if (s[right] == '(' || s[right] == '_') {
        right--;
      } else if (s[left] == '(' && s[right] == ')') {
        s[left] = '_';
        s[right] = '_';
        curr.push_back(left);
        curr.push_back(right);
        left++;
        right--;
      }
    }
    if (!curr.empty()) {
      sort(curr.begin(), curr.end());
      ans.push_back(curr);
    } else
      break;
  }
  cout << ans.size() << endl;
  for (auto i : ans) {
    cout << i.size() << endl;
    for (auto j : i) {
      cout << j + 1 << " ";
    }
    cout << endl;
  }
  return 0;
}
