#include <bits/stdc++.h>
double PI = 3.14159265;
long long int mod = 1e9 + 9;
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  int i = 0, j = n - 1;
  vector<int> v;
  while (i < j) {
    if (s[i] == '(') {
      for (int k = j; k > i; k--) {
        if (s[k] == ')') {
          v.push_back(i + 1);
          v.push_back(k + 1);
          j = k - 1;
          break;
        }
      }
    }
    i++;
  }
  sort(v.begin(), v.end());
  if (v.size() == 0) {
    cout << 0 << endl;
  } else {
    cout << 1 << endl;
    cout << v.size() << endl;
    for (int i = 0; i < v.size(); i++) {
      cout << v[i] << " ";
    }
    cout << endl;
  }
}
