#include <bits/stdc++.h>
using namespace std;
int t;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int ind = -1;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '(') {
      ind = i;
      break;
    }
  }
  if (ind == -1) {
    cout << 0 << endl;
    return 0;
  }
  int ind2 = s.size();
  for (int i = s.size() - 1; i >= 0; i--) {
    if (s[i] == ')') {
      ind2 = i;
      break;
    }
  }
  if (ind2 == s.size()) {
    cout << 0 << endl;
    return 0;
  }
  if (ind2 < ind) {
    cout << 0 << endl;
    return 0;
  }
  vector<int> vec, vec2;
  vec.push_back(ind);
  vec2.push_back(ind2);
  bool f = true;
  while (f) {
    f = false;
    for (int i = ind + 1; i < ind2; i++) {
      if (s[i] == '(') {
        for (int j = ind2 - 1; j > i; j--) {
          if (s[j] == ')') {
            f = true;
            ind2 = j;
            j = i;
          }
        }
        ind = i;
        break;
      }
    }
    if (f) {
      vec.push_back(ind);
      vec2.push_back(ind2);
    }
  }
  cout << 1 << endl;
  cout << vec.size() * 2 << endl;
  for (int i = 0; i < vec.size(); i++) {
    cout << vec[i] + 1 << " ";
  }
  sort(vec2.begin(), vec2.end());
  for (int i = 0; i < vec.size(); i++) {
    cout << vec2[i] + 1 << " ";
  }
  return 0;
}
