#include <bits/stdc++.h>
using namespace std;
using int64 = long long;
constexpr int DEBUG = 0;
template <typename T>
ostream& operator<<(ostream& s, const vector<T>& v) {
  int len = v.size();
  s << "[";
  for (int i = 0; i < len; i++) {
    if (i > 0) s << ", ";
    s << v[i];
  }
  s << "]";
  return s;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  int n = s.length();
  vector<int> xs, ys;
  int xi = 0;
  int yi = n - 1;
  while (true) {
    while (xi < n && s[xi] == ')') xi++;
    while (yi >= 0 && s[yi] == '(') yi--;
    if (xi >= n || yi < 0) break;
    if (xi >= yi) break;
    xs.push_back(xi);
    ys.push_back(yi);
    xi++;
    yi--;
  }
  if (xs.empty()) {
    cout << 0 << endl;
  } else {
    cout << 1 << endl;
    vector<int> zs;
    zs.insert(zs.end(), xs.begin(), xs.end());
    zs.insert(zs.end(), ys.begin(), ys.end());
    sort(zs.begin(), zs.end());
    cout << zs.size() << endl;
    for (int i = 0; i < zs.size(); i++) {
      if (i > 0) cout << " ";
      cout << zs[i] + 1;
    }
    cout << endl;
  }
}
