#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
const long long int P = 1000000007;
const double eps = 1e-6;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string second;
  cin >> second;
  int n = second.size();
  int i = 0, j = n - 1;
  vector<int> fr, ba;
  while (i < j) {
    while (i < n && second[i] != '(') i++;
    while (j >= 0 && second[j] != ')') j--;
    if (i < n && j >= 0 && i < j) {
      fr.push_back(i);
      ba.push_back(j);
      i++;
      j--;
    }
  }
  if (fr.size()) {
    cout << 1, cout << "\n";
    int k = fr.size();
    cout << 2 * k, cout << "\n";
    for (int i = 0; i < k; i++) cout << fr[i] + 1 << " ";
    for (int i = 0; i < k; i++) cout << ba[k - i - 1] + 1 << " ";
    cout << "\n";
  } else
    cout << 0, cout << "\n";
  cerr << "\nTime elapsed : " << 1000 * clock() / CLOCKS_PER_SEC << " ms\n";
  return 0;
}
