#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int n, i, c = 0, j;
  string s;
  cin >> s;
  n = s.length();
  i = 0;
  j = n - 1;
  vector<int> v;
  while (i < j) {
    if (s[i] == '(' && s[j] == ')') {
      v.emplace_back(i + 1);
      v.emplace_back(j + 1);
      c = 1;
      i++;
      j--;
      continue;
    }
    if (s[i] == ')') i++;
    if (s[j] == '(') j--;
  }
  sort(v.begin(), v.end());
  cout << c << endl;
  if (c != 0) {
    cout << v.size() << endl;
    for (i = 0; i < v.size(); i++) cout << v[i] << " ";
    cout << endl;
  }
  return 0;
}
