#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  vector<int> b;
  int n = a.length();
  for (int i = 0, j = n - 1; i < j;) {
    if (a[i] != '(')
      ++i;
    else {
      if (a[j] != ')')
        --j;
      else {
        b.push_back(i + 1);
        b.push_back(j + 1);
        i++;
        j--;
      }
    }
  }
  sort(b.begin(), b.end());
  if (b.size() == 0)
    cout << 0 << endl;
  else {
    cout << 1 << endl;
    cout << b.size() << endl;
    for (int i = 0; i < b.size(); ++i) {
      cout << b[i] << " ";
    }
  }
}
