#include <bits/stdc++.h>
using namespace std;
const long long N = 1e6 + 10;
const long long inf = 1e18 + 10;
string s;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> s;
  long long j = (long long)s.size() - 1;
  vector<long long> poses;
  for (long long i = 0; i < j; ++i) {
    if (s[i] == '(') {
      while (j > i && s[j] != ')') --j;
      if (s[j] == ')') {
        poses.push_back(i);
        poses.push_back(j);
        --j;
      } else
        break;
    }
  }
  sort(poses.begin(), poses.end());
  if (!poses.empty()) {
    cout << 1 << endl;
    cout << poses.size() << endl;
    for (auto p : poses) cout << (p + 1) << " ";
    cout << endl;
  } else
    cout << 0 << endl;
}
