#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  vector<vector<int>> ans;
  while (!s.empty()) {
    int x = 0, y = s.size() - 1;
    vector<int> h1, h2;
    while (x < y) {
      while (x < y && s[x] != '(') x++;
      while (y > x && s[y] != ')') y--;
      if (x == y) break;
      s[x] = 0;
      s[y] = 0;
      h1.push_back(x);
      h2.push_back(y);
      x++;
      y--;
    }
    if (h1.empty()) break;
    reverse(h2.begin(), h2.end());
    h1.insert(h1.end(), h2.begin(), h2.end());
    ans.push_back(h1);
    string t;
    for (char c : s) {
      if (c) t.push_back(c);
    }
    s = t;
  }
  cout << ans.size() << "\n";
  for (auto v : ans) {
    cout << v.size() << "\n";
    for (int x : v) cout << x + 1 << " ";
    cout << "\n";
  }
  return 0;
}
