#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  string s;
  cin >> s;
  vector<int> ans;
  vector<int> r_ans;
  int l = 0;
  int r = s.size() - 1;
  while (l < r) {
    if (s[l] == '(' && s[r] == '(') {
      --r;
    } else if (s[l] == '(' && s[r] == ')') {
      ans.push_back(l);
      r_ans.push_back(r);
      ++l, --r;
    } else {
      ++l;
    }
  }
  if (!ans.size()) {
    cout << 0 << endl;
    return 0;
  }
  cout << 1 << endl;
  cout << ans.size() * 2 << endl;
  reverse(begin(r_ans), end(r_ans));
  for (int p : ans) {
    cout << p + 1 << ' ';
  }
  for (int p : r_ans) {
    cout << p + 1 << ' ';
  }
  cout << endl;
  return 0;
}
