#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
using ull = unsigned long long int;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  int n = s.size();
  vector<int> res, res2;
  int l = 0, r = n - 1;
  while (l < r) {
    if (s[l] == '(') {
      while (s[r] != ')') {
        r--;
        if (r <= l) break;
      }
      if (r <= l) break;
      res.push_back(l + 1);
      res2.push_back(r + 1);
      l++;
      r--;
    } else
      l++;
  }
  if (res.size() == 0)
    cout << 0 << endl;
  else {
    cout << 1 << endl;
    cout << 2 * res.size() << endl;
    for (auto z : res) cout << z << " ";
    reverse(res2.begin(), res2.end());
    for (auto z : res2) cout << z << " ";
    cout << endl;
  }
  return 0;
}
