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