#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  vector<long long int> v;
  long long int lo = 0, hi = s.size() - 1;
  while (true) {
    while (lo < hi) {
      if (s[lo] == '(') break;
      lo++;
    }
    while (hi > lo) {
      if (s[hi] == ')') break;
      hi--;
    }
    if (lo < hi) {
      v.push_back(lo + 1);
      v.push_back(hi + 1);
      lo++;
      hi--;
    } else
      break;
  }
  sort(v.begin(), v.end());
  if (v.size() == 0)
    cout << 0 << endl;
  else {
    cout << 1 << endl;
    cout << v.size() << endl;
    cout << v[0];
    for (int i = 1; i < v.size(); i++) cout << " " << v[i];
    cout << endl;
  }
  return 0;
}
