#include <bits/stdc++.h>
using namespace std;
template <typename T>
std::ostream &operator<<(std::ostream &out, vector<T> &v) {
  for (typename vector<T>::size_type i = 0; i < v.size(); ++i)
    out << v[i] << " ";
  out << "\n";
  return out;
}
template <typename T>
std::ostream &operator<<(std::ostream &out, vector<pair<T, T> > &v) {
  for (size_t i = 0; i < v.size(); ++i)
    out << "(" << v[i].first << ", " << v[i].second << ") ";
  out << "\n";
  return out;
}
template <typename T>
std::ostream &operator<<(std::ostream &out, vector<vector<T> > &v) {
  for (size_t i = 0; i < v.size(); ++i) {
    for (size_t j = 0; j < v[i].size(); ++j) {
      out << v[i][j] << " ";
    }
    out << "\n";
  }
  return out;
}
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int sz = s.size();
  int i, j;
  i = 0;
  j = sz - 1;
  vector<int> positions;
  while (true) {
    while (s[i] != '(' && i < sz) {
      ++i;
    }
    while (s[j] != ')' && j >= 0) {
      --j;
    }
    if (i < j) {
      positions.push_back(i + 1);
      positions.push_back(j + 1);
      ++i;
      --j;
    } else {
      break;
    }
  }
  if (positions.size() == 0) {
    cout << "0\n";
  } else {
    sort(positions.begin(), positions.end());
    cout << "1\n";
    cout << positions.size() << "\n";
    cout << positions;
  }
  return 0;
}
