#include <bits/stdc++.h>
using namespace std;
long long i, j, k, l, n, m;
long long a[1009], b[1009], vis[1009];
vector<vector<long long> > nums;
vector<long long> res;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  ;
  string s;
  cin >> s;
  long long l, r;
  l = 0;
  r = s.length() - 1;
  while (1) {
    l = 0;
    r = s.length() - 1;
    res.clear();
    long long flag = 0;
    while (l < r) {
      while (l < s.length() && (s[l] != '(' || vis[l] == 1)) l++;
      while (r >= 0 && (s[r] != ')' || vis[r] == 1)) r--;
      if (r < 0 || l >= s.length() || l >= r) break;
      flag = 1;
      vis[l] = 1;
      vis[r] = 1;
      res.push_back(l);
      res.push_back(r);
    }
    if (!flag) break;
    nums.push_back(res);
  }
  cout << nums.size() << '\n';
  for (auto to : nums) {
    sort(to.begin(), to.end());
    cout << to.size() << '\n';
    for (auto tto : to) cout << tto + 1 << ' ';
    cout << '\n';
  }
  exit(0);
}
