#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  vector<long long> ans;
  long long n = s.size();
  vector<long long> first(n), second(n);
  for (long long i = 0; i < n; i++) {
    if (i) {
      first[i] = first[i - 1];
    }
    if (s[i] == '(') first[i]++;
  }
  for (long long i = n - 1; i >= 0; i--) {
    if (i != n - 1) {
      second[i] = second[i + 1];
    }
    if (s[i] == ')') {
      second[i]++;
    }
  }
  long long anspos = 0;
  long long m = 0;
  for (long long i = 0; i < n - 1; i++) {
    if (m < min(first[i], second[i + 1])) {
      m = min(first[i], second[i + 1]);
      anspos = i;
    }
  }
  for (long long i = 0, cnt = 0; cnt < m; i++) {
    if (s[i] == '(') {
      ans.push_back(i + 1);
      cnt++;
    }
  }
  for (long long i = n - 1, cnt = 0; cnt < m; i--) {
    if (s[i] == ')') {
      ans.push_back(i + 1);
      cnt++;
    }
  }
  if (ans.size() == 0) {
    cout << 0;
    return 0;
  }
  cout << 1 << '\n';
  sort(ans.begin(), ans.end());
  cout << ans.size() << '\n';
  for (long long t : ans) cout << t << " ";
}
