#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5, mod = 1e9 + 7;
int n;
string s;
int su[N];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> s;
  n = s.size();
  for (int i = n - 1; i >= 0; i--) {
    su[i] = su[i + 1] + (s[i] == ')');
  }
  int l = 0;
  vector<int> L, R;
  for (int i = 0; i < n; i++) {
    if (s[i] == '(' && su[i + 1] >= l + 1) {
      l++;
      L.push_back(i);
    }
  }
  int r = 0;
  for (int i = n - 1; i >= 0; i--) {
    if (s[i] == ')' && r < l) {
      r++;
      R.push_back(i);
    }
  }
  reverse(R.begin(), R.end());
  if (R.size() == 0 && L.size() == 0) {
    cout << "0";
    return 0;
  }
  cout << 1 << " " << L.size() + R.size() << "\n";
  for (auto u : L) cout << u + 1 << " ";
  for (auto u : R) cout << u + 1 << " ";
  return 0;
}
