#include <bits/stdc++.h>
using namespace std;
const long long N = 1e6 + 5, M = 3e3 + 5;
const long long inf = 1e18 + 100, mod = 1e9 + 7;
const double eps = 1e-9;
vector<long long> v[10000];
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  long long cnt = 0;
  vector<long long> a;
  a.clear();
  long long i = 0, j = s.length() - 1;
  while (i < s.length() && j > i) {
    if (s[i] == '(') {
      while (s[j] != ')' && j > i) j--;
      if (s[j] != ')' || i > j) break;
      a.push_back(i + 1);
      a.push_back(j + 1);
      j--;
    }
    i++;
  }
  if (a.size() == 0) {
    cout << 0;
    return 0;
  }
  sort(a.begin(), a.end());
  cnt++;
  for (auto i : a) v[cnt].push_back(i);
  cout << cnt << '\n';
  for (long long i = 1; i <= cnt; ++i) {
    cout << v[i].size() << '\n';
    for (auto j : v[i]) cout << j << ' ';
    cout << '\n';
  }
  return 0;
}
