#include <bits/stdc++.h>
using namespace std;
int a[1100], b[1100];
vector<int> v1, v2, vv;
int main() {
  string s;
  int n, i, j, k, f = 0;
  cin >> s;
  for (i = 0; i < s.size(); i++) {
    if (s[i] == '(')
      v1.push_back(i);
    else
      v2.push_back(i);
  }
  sort(v1.begin(), v1.end());
  sort(v2.begin(), v2.end(), greater<int>());
  for (i = 0; i < min(v1.size(), v2.size()); i++) {
    if (v1[i] < v2[i]) {
      vv.push_back(v1[i]);
      vv.push_back(v2[i]);
    }
  }
  sort(vv.begin(), vv.end());
  if (vv.size() > 0) {
    cout << 1 << endl;
    cout << vv.size() << endl;
    for (i = 0; i < vv.size(); i++) {
      cout << vv[i] + 1 << " ";
    }
    cout << endl;
  } else
    cout << 0 << endl;
}
