#include <bits/stdc++.h>
const int mod = 1000000007;
const int inf = 1000000009;
const long long INF = 1000000000000000009;
const long long big = 1000000000000000;
const long double eps = 0.000000000000000000001;
using namespace std;
vector<int> W[2];
vector<int> A;
bool cmp(int a, int b) { return a > b; }
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string napis;
  cin >> napis;
  for (int i = 0; i < napis.size(); i++) {
    if (napis[i] == '(')
      W[0].push_back(i);
    else
      W[1].push_back(i);
  }
  sort(W[0].begin(), W[0].end(), cmp);
  while (!W[0].empty() && !W[1].empty() && W[0].back() < W[1].back()) {
    A.push_back(W[0].back());
    A.push_back(W[1].back());
    W[0].pop_back();
    W[1].pop_back();
  }
  if (A.empty())
    cout << 0;
  else {
    cout << "1\n";
    cout << (int)A.size() << "\n";
    sort(A.begin(), A.end());
    for (auto v : A) cout << v + 1 << " ";
  }
  return 0;
}
