#include <bits/stdc++.h>
using namespace std;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
int main() {
  string s;
  cin >> s;
  const int N = s.size();
  int r = N - 1;
  vector<int> ans;
  for (int l = 0; l < r && l < N; ++l) {
    if (s[l] != '(') continue;
    while (l < r && s[r] != ')') --r;
    if (l >= r) break;
    ans.push_back(l + 1);
    ans.push_back(r + 1);
    --r;
  }
  sort((ans).begin(), (ans).end());
  if (ans.size() == 0) {
    cout << 0 << endl;
    return 0;
  }
  cout << 1 << endl;
  cout << ans.size() << endl;
  for (int i = 0; i < (int)(ans.size()); ++i) {
    if (i) cout << " ";
    cout << ans[i];
  }
  cout << endl;
  return 0;
}
