#include <bits/stdc++.h>
using namespace std;
const long long N = 2e5 + 5;
long long t, n;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  string str;
  cin >> str;
  n = str.length();
  long long start_ind = 0, end_ind = n - 1;
  vector<long long> v;
  long long flag = 0;
  while (start_ind < end_ind) {
    if (str[start_ind] == ')') {
      start_ind++;
      continue;
    } else {
      long long temp = end_ind;
      for (long long i = temp; i > start_ind; i--) {
        if (str[i] == '(')
          continue;
        else {
          flag = 1;
          v.push_back(i);
          v.push_back(start_ind);
          end_ind = i - 1;
          break;
        }
      }
      start_ind++;
    }
  }
  if (flag == 0) {
    cout << 0 << "\n";
    return 0;
  }
  sort(v.begin(), v.end());
  if (v.size()) {
    cout << 1 << "\n";
    cout << v.size() << "\n";
    for (long long i = (long long)0; i < (long long)v.size(); i++)
      cout << v[i] + 1 << " ";
  } else
    cout << 0 << "\n";
  cout << "\n";
  return 0;
}
