#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1e9 + 7;
const int MAX = 100005;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  long long int i, j, k;
  vector<long long int> v;
  for (i = 0; i < s.length(); i++) {
    if (s[i] == '(') {
      for (j = s.length() - 1; j > i; j--) {
        if (s[j] == ')') {
          v.push_back(i);
          v.push_back(j);
          s[i] = '.';
          s[j] = '.';
          j = 0;
        }
      }
    }
  }
  if (v.size()) {
    cout << 1 << endl;
    cout << v.size() << endl;
    sort(v.begin(), v.end());
    for (i = 0; i < v.size(); i++) cout << v[i] + 1 << " ";
    cout << endl;
  } else
    cout << "0\n";
  return 0;
}
