#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.length();
  int open = 0;
  for (auto e : s) {
    if (e == '(') open++;
  }
  int close = n - open;
  vector<int> ans;
  int curr = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == '(') {
      if (curr + 1 <= close) {
        ans.push_back(i + 1);
        curr++;
      }
    } else {
      if (close - 1 >= curr) {
      } else {
        ans.push_back(i + 1);
      }
      close--;
    }
  }
  if (ans.empty()) {
    cout << 0;
  } else {
    cout << 1 << "\n" << ans.size() << "\n";
    for (auto e : ans) {
      cout << e << " ";
    }
  }
}
