#include <bits/stdc++.h>
using namespace std;
int pair1 = 0;
int l = -1, r = -1;
void fun(string s) {
  l = -1;
  r = -1;
  pair1 = 0;
  for (int i = 0; i < (s.length() - 1); i++) {
    if (s[i] == '(' && l == -1) l = i;
    if (s[i] == ')') r = i;
    if (s[i] == '(' && s[i + 1] == ')') {
      pair1 += 1;
    }
  }
  if (s.length() > 1) {
    if (s[s.length() - 1] == ')') r = s.length() - 1;
  }
}
int main() {
  string s;
  cin >> s;
  fun(s);
  vector<int> a, b;
  for (int i = 0; i < (s.length()); i++) {
    if (s[i] == '(')
      a.push_back(i + 1);
    else
      b.push_back(i + 1);
  }
  int n = 0;
  while (pair1 != 0) {
    n++;
    s.erase(l, 1);
    s.erase(r - 1, 1);
    if (s.length() > 1)
      fun(s);
    else
      break;
  }
  if (n > 0) {
    cout << 1 << endl;
    cout << n * 2 << endl;
    vector<int> res;
    for (int i = 0; i < (n); i++) {
      res.push_back(a[i]);
      res.push_back(b[b.size() - i - 1]);
    }
    sort(res.begin(), res.end());
    for (auto i : res) {
      cout << i << " ";
    }
  } else
    cout << 0;
  return 0;
}
