#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  int n = s.size();
  int o = 0;
  int e = 0;
  int st = 0;
  int ed = n - 1;
  vector<int> v;
  while (st < ed) {
    if (s[st] == '(' && s[ed] == ')') {
      v.push_back(st + 1);
      v.push_back(ed + 1);
      st++;
      ed--;
    } else if (s[st] == '(' && s[ed] == '(') {
      ed--;
    } else if (s[st] == ')' && s[ed] == '(') {
      st++;
      ed--;
    } else {
      st++;
    }
  }
  if (v.size() == 0) {
    cout << v.size() << "\n";
  } else {
    sort(v.begin(), v.end());
    cout << 1 << "\n";
    cout << v.size() << "\n";
    for (auto x : v) cout << x << " ";
  }
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
